fix login screen after error of decryption and user chose to cancel

Niko PLP 1 year ago
parent 897ff533ad
commit 858f3d40e4
  1. 6
      ng-app/src/api.ts

@ -129,7 +129,11 @@ const handler = {
} else if (path[0] === "wallet_open_wallet_with_pazzle") { } else if (path[0] === "wallet_open_wallet_with_pazzle") {
let arg:any = {}; let arg:any = {};
args.map((el,ix) => arg[mapping[path[0]][ix]]=el) 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) return tauri.invoke(path[0],arg)
} }
else { else {

Loading…
Cancel
Save