diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts b/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts index 7f484b0a4..4bb332da8 100644 --- a/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts +++ b/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts @@ -29,11 +29,11 @@ export function useBackupDeviceName(): BackupDeviceName { }); useEffect(() => { - async function run() { + async function run(): Promise<void> { //create a first list of backup info by currency const status = await wxApi.getBackupInfo(); - async function update(newName: string) { + async function update(newName: string): Promise<void> { await wxApi.setWalletDeviceId(newName); setStatus((old) => ({ ...old, name: newName })); } |