diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Recovery')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Recovery/state.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Recovery/state.ts b/packages/taler-wallet-webextension/src/cta/Recovery/state.ts index fcf5e309f..aa4942c4e 100644 --- a/packages/taler-wallet-webextension/src/cta/Recovery/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Recovery/state.ts @@ -59,7 +59,13 @@ export function useComponentState({ async function recoverBackup(): Promise<void> { await api.wallet.call(WalletApiOperation.ImportBackupRecovery, { - recovery, + recovery: { + walletRootPriv: recovery.walletRootPriv, + providers: recovery.providers.map((url) => ({ + name: new URL(url).hostname, + url, + })), + }, }); onSuccess(); } |