aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts')
-rw-r--r--packages/taler-wallet-webextension/src/hooks/useWalletDevMode.ts6
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;
}