diff --git a/src/components/BorrowerProfile/LendCta.vue b/src/components/BorrowerProfile/LendCta.vue
index 221dab0823..a13c998fb9 100644
--- a/src/components/BorrowerProfile/LendCta.vue
+++ b/src/components/BorrowerProfile/LendCta.vue
@@ -149,7 +149,7 @@
v-if="freeCreditWarning"
class="tw-text-h4 tw-text-secondary tw-inline-block tw-text-center tw-w-full"
>
- Not eligilble for lending credit
+ Not eligible for lending credit
-
+
diff --git a/src/components/BorrowerProfile/LoanStory.vue b/src/components/BorrowerProfile/LoanStory.vue
index d1f803c17f..c4eb9bae79 100644
--- a/src/components/BorrowerProfile/LoanStory.vue
+++ b/src/components/BorrowerProfile/LoanStory.vue
@@ -22,6 +22,7 @@
]"
/>
@@ -79,6 +81,7 @@ export default {
firstName
}
description
+ previousLoanId
# TEMPORARILY Disabled for MVP
# descriptionInOriginalLanguage
image {
@@ -128,6 +131,7 @@ export default {
this.originalLanguage = loan?.originalLanguage ?? {};
this.partnerName = loan?.partnerName ?? '';
this.reviewer = loan?.reviewer ?? {};
+ this.previousLoanId = loan?.previousLoanId ?? '';
},
},
};
diff --git a/src/components/BorrowerProfile/PreviousLoanDescription.vue b/src/components/BorrowerProfile/PreviousLoanDescription.vue
new file mode 100644
index 0000000000..d31e0d4b03
--- /dev/null
+++ b/src/components/BorrowerProfile/PreviousLoanDescription.vue
@@ -0,0 +1,102 @@
+
+
+
+ Show previous loan details
+
+
+
+
+
Previous loan details
+
+
+
+
+
+
+
+
+
diff --git a/src/util/loanUtils.js b/src/util/loanUtils.js
index 9be6708888..a0e059aed7 100644
--- a/src/util/loanUtils.js
+++ b/src/util/loanUtils.js
@@ -55,3 +55,7 @@ export function buildPriceArray(amountLeft, minAmount) {
}
return priceArray;
}
+
+export function toParagraphs(text) {
+ return String(text).replace(/\r|\n|
/g, '\n').split(/\n+/);
+}