diff options
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/operations/balance.ts | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/operations/balance.ts b/packages/taler-wallet-core/src/operations/balance.ts index 88428eaaa..1b6ff7844 100644 --- a/packages/taler-wallet-core/src/operations/balance.ts +++ b/packages/taler-wallet-core/src/operations/balance.ts @@ -174,20 +174,19 @@ export async function getBalancesInsideTransaction( return; case WithdrawalGroupStatus.PendingReady: case WithdrawalGroupStatus.AbortingBank: - case WithdrawalGroupStatus.PendingAml: - b.flagIncomingAml = true; - break; - case WithdrawalGroupStatus.PendingKyc: - b.flagIncomingKyc = true; - break; case WithdrawalGroupStatus.PendingQueryingStatus: case WithdrawalGroupStatus.SuspendedWaitConfirmBank: case WithdrawalGroupStatus.SuspendedReady: case WithdrawalGroupStatus.SuspendedRegisteringBank: + case WithdrawalGroupStatus.SuspendedAbortingBank: + case WithdrawalGroupStatus.SuspendedQueryingStatus: + // Pending, but no special flag. + break; case WithdrawalGroupStatus.SuspendedKyc: + case WithdrawalGroupStatus.PendingKyc: b.flagIncomingKyc = true; break; - case WithdrawalGroupStatus.SuspendedAbortingBank: + case WithdrawalGroupStatus.PendingAml: case WithdrawalGroupStatus.SuspendedAml: b.flagIncomingAml = true; break; @@ -195,8 +194,6 @@ export async function getBalancesInsideTransaction( case WithdrawalGroupStatus.PendingWaitConfirmBank: b.flagIncomingConfirmation = true; break; - case WithdrawalGroupStatus.SuspendedQueryingStatus: - break; default: assertUnreachable(wgRecord.status); } @@ -241,7 +238,7 @@ export async function getBalancesInsideTransaction( } balancesResponse.balances.push({ scopeInfo: { - // FIXME: obtain REAL scopeInfo instead of faking a global currency + // FIXME: obtain REAL scopeInfo instead of faking a global currency type: ScopeType.Global, currency: Amounts.currencyOf(v.available), }, |