diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts b/packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts index 8d4921392..d5743eb2e 100644 --- a/packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts +++ b/packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts @@ -48,8 +48,10 @@ async function handleOpen( currentValue: undefined | boolean, onChange: (value: boolean) => void, ): Promise<void> { - const nextValue = !currentValue - await wxApi.wallet.call(WalletApiOperation.SetDevMode, { devModeEnabled: nextValue }); + const nextValue = !currentValue; + await wxApi.wallet.call(WalletApiOperation.SetDevMode, { + devModeEnabled: nextValue, + }); onChange(nextValue); return; } |