Skip to content

Commit

Permalink
Merge pull request getAlby#2750 from getAlby/fix-onboard-logic
Browse files Browse the repository at this point in the history
fix: fix onboard logic
  • Loading branch information
rolznz committed Sep 11, 2023
2 parents 60cdce7 + 7600f7f commit b2c8063
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/extension/content-script/liquid.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ async function init() {

// Overrides the enable action so the user can go through onboarding to setup their keys
if (!account || !account.hasMnemonic) {
const account = await api.getAccount();
account = await api.getAccount();
if (!account.hasMnemonic) {
messageWithOrigin.action = `public/liquid/onboard`;
messageWithOrigin.action = ev.data.action = `public/liquid/onboard`;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/extension/content-script/webbtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ async function init() {

// Overrides the enable action so the user can go through onboarding to setup their keys
if (!account || !account.hasMnemonic) {
const account = await api.getAccount();
account = await api.getAccount();
if (!account.hasMnemonic) {
messageWithOrigin.action = `public/webbtc/onboard`;
messageWithOrigin.action = ev.data.action = `public/webbtc/onboard`;
}
}

Expand Down

0 comments on commit b2c8063

Please sign in to comment.