1
0
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:
Mark Stacey 2020-04-15 11:41:53 -03:00 committed by GitHub
parent 8e03a96470
commit be84a7c2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)