Skip to content

Commit

Permalink
fix: donate link fixed on mykiva nav (#5699)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva authored Nov 19, 2024
1 parent 8a5e02b commit 1a54df2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/MyKiva/MyKivaNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,18 @@
<li
v-for="setting in lendingOptions"
:key="setting.text"
class="tw-mt-1.5
hover:tw-translate-x-1 hover:lg:tw-translate-x-2 tw-duration-300 tw-delay-100"
:class="[
'tw-mt-1.5 tw-duration-300 tw-delay-100',
{ 'hover:tw-translate-x-1 hover:lg:tw-translate-x-2' :
!setting.isDonate || parseFloat(userBalance) }
]"
>
<component
:is="setting.isDonate && !parseFloat(userBalance) ? 'span' : 'router-link'"
class="tw-text-primary tw-font-medium"
:class="[
'tw-text-primary tw-font-medium',
{ 'tw-text-tertiary': setting.isDonate && !parseFloat(userBalance) }
]"
:to="returnLendingUrl(setting)"
v-kv-track-event="[
'SecondaryNav links',
Expand Down

0 comments on commit 1a54df2

Please sign in to comment.