Skip to content

Commit

Permalink
quick bugfix to get another release for review
Browse files Browse the repository at this point in the history
  • Loading branch information
piyalbasu committed Jun 5, 2020
1 parent 8a6e512 commit 4fd6fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/background/messageListener/externalMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const externalMessageListener = (
// queue it up, we'll let user confirm the url looks okay and then we'll send publicKey
// if we're good, of course
if (url === tabUrl) {
sendResponse({ publicKey });
sendResponse({ publicKey: publicKeySelector(store.getState()) });
} else {
sendResponse({ error: "User declined access" });
}
Expand Down
5 changes: 2 additions & 3 deletions src/background/messageListener/internalMessageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ const internalMessageListener = (

const confirmPassword = async () => {
const { password } = request;
const state = store.getState();
let keyStore;
try {
keyStore = await keyManager.loadKey(
Expand All @@ -187,8 +186,8 @@ const internalMessageListener = (
}

sendResponse({
publicKey: publicKeySelector(state),
hasPrivateKey: hasPrivateKeySelector(state),
publicKey: publicKeySelector(store.getState()),
hasPrivateKey: hasPrivateKeySelector(store.getState()),
applicationState: localStorage.getItem(APPLICATION_ID) || "",
});
};
Expand Down

0 comments on commit 4fd6fe4

Please sign in to comment.