Skip to content

Commit

Permalink
Fix shield import (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Feb 23, 2024
1 parent bbb970c commit 4ee9348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ async function restoreWallet(strReason) {
const extsk = await decrypt(encExtsk, strPassword);
if (key.masterKey) {
// This SHOULD REALLY NOT HAPPEN
if (wallet.hasShield && !extsk) {
if (wallet.hasShield.value && !extsk) {
createAlert(
'warning',
'Could not decrypt sk even if password is correct, please contact a developer'
);
}
if (wallet.hasShield) {
if (wallet.hasShield.value) {
await wallet.setExtsk(extsk);
}
await wallet.setMasterKey(key.masterKey);
Expand Down

0 comments on commit 4ee9348

Please sign in to comment.