From 1a63d56bfdd091cc7aefdf1e25f3a074bfdf5e0e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 16 Nov 2022 16:04:52 -0300 Subject: fix #7411, also making the backup payment visible --- .../taler-wallet-webextension/src/hooks/useProviderStatus.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts') diff --git a/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts b/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts index b73c9fc16..e6473d1ec 100644 --- a/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts +++ b/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts @@ -30,7 +30,10 @@ export function useProviderStatus(url: string): ProviderStatus | undefined { useEffect(() => { async function run(): Promise { //create a first list of backup info by currency - const status = await wxApi.wallet.call(WalletApiOperation.GetBackupInfo, {}); + const status = await wxApi.wallet.call( + WalletApiOperation.GetBackupInfo, + {}, + ); const providers = status.providers.filter( (p) => p.syncProviderBaseUrl === url, @@ -40,7 +43,7 @@ export function useProviderStatus(url: string): ProviderStatus | undefined { async function sync(): Promise { if (info) { await wxApi.wallet.call(WalletApiOperation.RunBackupCycle, { - providers: [info.syncProviderBaseUrl] + providers: [info.syncProviderBaseUrl], }); } } @@ -48,7 +51,7 @@ export function useProviderStatus(url: string): ProviderStatus | undefined { async function remove(): Promise { if (info) { await wxApi.wallet.call(WalletApiOperation.RemoveBackupProvider, { - provider: info.syncProviderBaseUrl + provider: info.syncProviderBaseUrl, }); } } -- cgit v1.2.3