Skip to content

Commit

Permalink
disable invite button if no balance on incognitee
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed May 4, 2024
1 parent 4aa4164 commit e2d6591
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/InviteFriendTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
</div>

<div class='mt-10 mb-8'>
<UButton class="btn btn_gradient" @click="inviteFriend">Invite Friend</UButton>
<template v-if="accountStore.incogniteeBalance > 0">
<UButton class="btn btn_gradient" @click="inviteFriend">Invite Friend</UButton>
</template>
<template v-else>
<NuxtLink to="" target="blank" class="btn btn_border">can't invite with zero balance</NuxtLink>
</template>
</div>
<div class='mt-10 mb-3'>
<input type="text" ref="urlToShareWithFriend" class="dynamic-width border-2 border-gray-200 p-2"
Expand Down

0 comments on commit e2d6591

Please sign in to comment.