mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Use correct history
object on Permissions Connect page (#8338)
The browser global `history` was being used here instead of the React Router `history` object. This was accidentally broken when refactoring in #8269
This commit is contained in:
parent
8e03a96470
commit
be84a7c2cf
@ -140,7 +140,7 @@ export default class PermissionConnect extends Component {
|
||||
}
|
||||
|
||||
cancelPermissionsRequest = async (requestId) => {
|
||||
const { rejectPermissionsRequest } = this.props
|
||||
const { history, rejectPermissionsRequest } = this.props
|
||||
if (requestId) {
|
||||
await rejectPermissionsRequest(requestId)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user