diff options
author | Sebastian <sebasjm@gmail.com> | 2024-05-20 17:10:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-05-20 17:11:10 -0300 |
commit | 44bea073af97f8c1aee4a3fc05cbfdb6036da265 (patch) | |
tree | f59165ab0d8340968182caffb4807294f17fd895 /packages/taler-wallet-core/src/balance.ts | |
parent | 81d52f03f56384c73f9a18758352bae474e419ff (diff) | |
download | wallet-core-44bea073af97f8c1aee4a3fc05cbfdb6036da265.tar.xz |
codespell and pretty
Diffstat (limited to 'packages/taler-wallet-core/src/balance.ts')
-rw-r--r-- | packages/taler-wallet-core/src/balance.ts | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/balance.ts b/packages/taler-wallet-core/src/balance.ts index b2ba7b95d..76e604324 100644 --- a/packages/taler-wallet-core/src/balance.ts +++ b/packages/taler-wallet-core/src/balance.ts @@ -375,14 +375,20 @@ export async function getBalancesInsideTransaction( break; case WithdrawalGroupStatus.SuspendedKyc: case WithdrawalGroupStatus.PendingKyc: { - checkDbInvariant(wg.denomsSel !== undefined, "wg in kyc state should have been initialized") + checkDbInvariant( + wg.denomsSel !== undefined, + "wg in kyc state should have been initialized", + ); const currency = Amounts.currencyOf(wg.denomsSel.totalCoinValue); await balanceStore.setFlagIncomingKyc(currency, wg.exchangeBaseUrl); break; } case WithdrawalGroupStatus.PendingAml: case WithdrawalGroupStatus.SuspendedAml: { - checkDbInvariant(wg.denomsSel !== undefined, "wg in aml state should have been initialized") + checkDbInvariant( + wg.denomsSel !== undefined, + "wg in aml state should have been initialized", + ); const currency = Amounts.currencyOf(wg.denomsSel.totalCoinValue); await balanceStore.setFlagIncomingAml(currency, wg.exchangeBaseUrl); break; @@ -398,7 +404,10 @@ export async function getBalancesInsideTransaction( break; } case WithdrawalGroupStatus.PendingWaitConfirmBank: { - checkDbInvariant(wg.denomsSel !== undefined, "wg in confirmed state should have been initialized") + checkDbInvariant( + wg.denomsSel !== undefined, + "wg in confirmed state should have been initialized", + ); const currency = Amounts.currencyOf(wg.denomsSel.totalCoinValue); await balanceStore.setFlagIncomingConfirmation( currency, @@ -418,7 +427,6 @@ export async function getBalancesInsideTransaction( wg.denomsSel.totalCoinValue, ); } - }); await tx.peerPushDebit.indexes.byStatus |