diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index c615bc81d..1b74f2025 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -937,10 +937,7 @@ async function setCoinSuspended( if (c.status !== CoinStatus.Fresh) { return; } - if ( - coinAvailability.freshCoinCount == null || - coinAvailability.freshCoinCount === 0 - ) { + if (coinAvailability.freshCoinCount === 0) { throw Error( `invalid coin count ${coinAvailability.freshCoinCount} in DB`, ); @@ -951,9 +948,6 @@ async function setCoinSuspended( if (c.status == CoinStatus.Dormant) { return; } - if (coinAvailability.freshCoinCount == null) { - coinAvailability.freshCoinCount = 0; - } coinAvailability.freshCoinCount++; c.status = CoinStatus.Fresh; } |