Don't show subscription info until loading is finished

This commit is contained in:
silverpill 2022-06-14 23:32:56 +00:00
parent 9803775aa1
commit dd821a8760

View file

@ -32,12 +32,14 @@
{{ subscription.pricePerMonth }} {{ subscription.tokenSymbol }}
<span class="price-subtext">per month</span>
</div>
<div class="status">
<template v-if="subscriptionState && !subscriptionState.senderBalance.isZero()">
<div class="status" v-if="subscriptionState">
<template v-if="subscriptionState.senderBalance.isZero()">
You are not subscribed yet
</template>
<template v-else>
<div>Your balance is {{ subscription.formatAmount(subscriptionState.senderBalance) }} {{ subscription.tokenSymbol }}</div>
<div>Subscription expires {{ subscription.getExpirationDate(subscriptionState.senderBalance).toLocaleString() }}</div>
</template>
<template v-else>You are not subscribed yet</template>
</div>
</template>
<template v-else>