From 858f3d40e49fe4a64c64e378713e8330036be5e5 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sun, 20 Aug 2023 02:07:44 +0300 Subject: [PATCH] fix login screen after error of decryption and user chose to cancel --- ng-app/src/api.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ng-app/src/api.ts b/ng-app/src/api.ts index 530c6ee..d171b4f 100644 --- a/ng-app/src/api.ts +++ b/ng-app/src/api.ts @@ -129,7 +129,11 @@ const handler = { } else if (path[0] === "wallet_open_wallet_with_pazzle") { let arg:any = {}; args.map((el,ix) => arg[mapping[path[0]][ix]]=el) - arg.wallet.V0.content.security_img = Array.from(new Uint8Array(arg.wallet.V0.content.security_img)); + let img = Array.from(new Uint8Array(arg.wallet.V0.content.security_img)); + let old_content = arg.wallet.V0.content; + arg.wallet = {V0:{id:arg.wallet.V0.id, sig:arg.wallet.V0.sig, content:{}}}; + Object.assign(arg.wallet.V0.content,old_content); + arg.wallet.V0.content.security_img = img; return tauri.invoke(path[0],arg) } else {