diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts b/packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts index 1a48cdca7..cb90ec853 100644 --- a/packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts +++ b/packages/taler-wallet-webextension/src/hooks/useAutoOpenPermissions.ts @@ -25,9 +25,11 @@ export function useAutoOpenPermissions(): ToggleHandler { const [enabled, setEnabled] = useState(false); const [error, setError] = useState<TalerError | undefined>(); const toggle = async (): Promise<void> => { - return handleAutoOpenPerm(enabled, setEnabled, api.background).catch((e) => { - setError(TalerError.fromException(e)); - }); + return handleAutoOpenPerm(enabled, setEnabled, api.background).catch( + (e) => { + setError(TalerError.fromException(e)); + }, + ); }; useEffect(() => { |