Skip to content

Commit

Permalink
Aleksei/cancel sign flow fix (#149)
Browse files Browse the repository at this point in the history
* changelog

* removing signin request on cancel

* removed useless code

* removed usless code
  • Loading branch information
iambeone authored Feb 21, 2020
1 parent 6de02a5 commit a6e43d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pending/aleksei_cancel_signin_flow_fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Added] [#3513](https://github.com/cosmos/lunie/issues/3513) removing signin request in extension on cancel @iambeone
6 changes: 6 additions & 0 deletions src/messageHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export function signMessageHandler(
sendResponse
) {
switch (message.type) {
case 'LUNIE_SIGN_REQUEST_CANCEL': {
signRequestQueue.unqueueSignRequestForTab({
tabID: sender.tab.id
})
break
}
case 'LUNIE_SIGN_REQUEST': {
const { signMessage, senderAddress, network } = message.payload
const wallet = getWalletFromIndex(getWalletIndex(), senderAddress)
Expand Down
1 change: 0 additions & 1 deletion src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default ({ apollo }) => {
}

const setNetwork = ({ commit }, network) => {
console.log('setNetworkId', network.id)
commit('setNetworkId', network.id)
}

Expand Down

0 comments on commit a6e43d3

Please sign in to comment.