zen: fix balance not shown
This commit is contained in:
@@ -43,23 +43,20 @@ export default function () {
|
|||||||
</span>
|
</span>
|
||||||
<Show when={userInfo()?.isAdmin}>
|
<Show when={userInfo()?.isAdmin}>
|
||||||
<span data-slot="billing-info">
|
<span data-slot="billing-info">
|
||||||
<Switch>
|
<Show when={billingInfo()?.customerID} fallback={
|
||||||
<Match when={!billingInfo()?.customerID}>
|
<button
|
||||||
<button
|
data-color="primary"
|
||||||
data-color="primary"
|
data-size="sm"
|
||||||
data-size="sm"
|
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
|
||||||
disabled={checkoutSubmission.pending || store.checkoutRedirecting}
|
onClick={onClickCheckout}
|
||||||
onClick={onClickCheckout}
|
>
|
||||||
>
|
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
|
||||||
{checkoutSubmission.pending || store.checkoutRedirecting ? "Loading..." : "Enable billing"}
|
</button>
|
||||||
</button>
|
}>
|
||||||
</Match>
|
<span data-slot="balance">
|
||||||
<Match when={!billingInfo()?.subscriptionID}>
|
Current balance <b>${balance()}</b>
|
||||||
<span data-slot="balance">
|
</span>
|
||||||
Current balance <b>${balance()}</b>
|
</Show>
|
||||||
</span>
|
|
||||||
</Match>
|
|
||||||
</Switch>
|
|
||||||
</span>
|
</span>
|
||||||
</Show>
|
</Show>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user