fix(subscriptions): card and never-paid wait for the payments instead of guessing while they load
This commit is contained in:
1 parent
9c15b81409
commit
54a51752ac
1 file changed
+4
-2
@@ -491,7 +491,9 @@
|
|||||||
{@const ends = bill.end_date?.slice(0, 10)}
|
{@const ends = bill.end_date?.slice(0, 10)}
|
||||||
{@const last = lastOf(item)}
|
{@const last = lastOf(item)}
|
||||||
{@const who = payer(item)}
|
{@const who = payer(item)}
|
||||||
{@const stale = staleSince(bill, last, day)}
|
{@const stale = paid.isSuccess
|
||||||
|
? staleSince(bill, last, day)
|
||||||
|
: null}
|
||||||
{@const extra = found.get(item.id) ?? []}
|
{@const extra = found.get(item.id) ?? []}
|
||||||
{@const armedHere = arm.key?.endsWith(`:${item.id}`)}
|
{@const armedHere = arm.key?.endsWith(`:${item.id}`)}
|
||||||
<tr
|
<tr
|
||||||
@@ -567,7 +569,7 @@
|
|||||||
billIds={manualCards.picking.ids}
|
billIds={manualCards.picking.ids}
|
||||||
cards={cardList}
|
cards={cardList}
|
||||||
/>
|
/>
|
||||||
{:else if bill.active}
|
{:else if bill.active && paid.isSuccess}
|
||||||
{#if who.card}
|
{#if who.card}
|
||||||
<span class="text-cladd-fg-soft"
|
<span class="text-cladd-fg-soft"
|
||||||
>{who.card.name}</span
|
>{who.card.name}</span
|
||||||
|
|||||||
Reference in new issue
Block a user