diff options
author | Florian Dold <florian@dold.me> | 2023-12-04 21:51:52 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-04 21:51:52 +0100 |
commit | ce5314152123b555255ffaef956aebc419ee9910 (patch) | |
tree | cfcbc889f11f8a7655c6d12cc792a5c8ed140ae5 /packages/taler-wallet-core/src/operations/balance.ts | |
parent | c00b523c662566e993474f6c3dc4c1f90b860e34 (diff) | |
download | wallet-core-ce5314152123b555255ffaef956aebc419ee9910.tar.xz |
-fix withdrawal flags in balancev0.9.4-dev.1
Diffstat (limited to 'packages/taler-wallet-core/src/operations/balance.ts')
-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), }, |