From 2ac6ec129733eccaeeca93edd32f8e76d8f8f906 Mon Sep 17 00:00:00 2001 From: Roger Gutierrez <94026278+roger-in-kiva@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:05:17 -0600 Subject: [PATCH] feat: prioritizing matching text in loan tag component (#308) --- @kiva/kv-components/vue/KvLoanTag.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/@kiva/kv-components/vue/KvLoanTag.vue b/@kiva/kv-components/vue/KvLoanTag.vue index dd5cd30b..e0b9bd41 100644 --- a/@kiva/kv-components/vue/KvLoanTag.vue +++ b/@kiva/kv-components/vue/KvLoanTag.vue @@ -50,14 +50,14 @@ export default { return numeral(this.loan?.loanAmount).subtract(fundedAmount).subtract(reservedAmount).value(); }, variation() { - if (this.isLseLoan) { + if (this.loan?.matchingText) { + return 'matched-loan'; + } if (this.isLseLoan) { return 'lse-loan'; } if (differenceInDays(parseISO(this.loan?.plannedExpirationDate), Date.now()) <= 3) { return 'ending-soon'; } if (this.amountLeft < 100 && this.amountLeft >= 0) { return 'almost-funded'; - } if (this.loan?.matchingText) { - return 'matched-loan'; } return null; },