Skip to content

Commit

Permalink
Update the state when removing the permission
Browse files Browse the repository at this point in the history
  • Loading branch information
neuodev committed Jan 26, 2022
1 parent 24aceaa commit 62d3c90
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -54,7 +54,7 @@ export default class DappConnectorNavbar extends Component<Props> {
'*://*/*'
]
}, (removed) => {
this.setState({ hasPermission: removed })
this.setState({ hasPermission: !removed })
if (removed) {
alert('permissions removed')
} else {
Expand Down

0 comments on commit 62d3c90

Please sign in to comment.