mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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) => {
|
cancelPermissionsRequest = async (requestId) => {
|
||||||
const { rejectPermissionsRequest } = this.props
|
const { history, rejectPermissionsRequest } = this.props
|
||||||
if (requestId) {
|
if (requestId) {
|
||||||
await rejectPermissionsRequest(requestId)
|
await rejectPermissionsRequest(requestId)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user