Skip to content

Commit 4fd6fe4

Browse files
committed
quick bugfix to get another release for review
1 parent 8a6e512 commit 4fd6fe4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/background/messageListener/externalMessageListener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const externalMessageListener = (
4444
// queue it up, we'll let user confirm the url looks okay and then we'll send publicKey
4545
// if we're good, of course
4646
if (url === tabUrl) {
47-
sendResponse({ publicKey });
47+
sendResponse({ publicKey: publicKeySelector(store.getState()) });
4848
} else {
4949
sendResponse({ error: "User declined access" });
5050
}

src/background/messageListener/internalMessageListener.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ const internalMessageListener = (
168168

169169
const confirmPassword = async () => {
170170
const { password } = request;
171-
const state = store.getState();
172171
let keyStore;
173172
try {
174173
keyStore = await keyManager.loadKey(
@@ -187,8 +186,8 @@ const internalMessageListener = (
187186
}
188187

189188
sendResponse({
190-
publicKey: publicKeySelector(state),
191-
hasPrivateKey: hasPrivateKeySelector(state),
189+
publicKey: publicKeySelector(store.getState()),
190+
hasPrivateKey: hasPrivateKeySelector(store.getState()),
192191
applicationState: localStorage.getItem(APPLICATION_ID) || "",
193192
});
194193
};

0 commit comments

Comments
 (0)