File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/background/messageListener Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments