From 8c81f9d5307ad8052cdb3520e38f6a29ba8ff14d Mon Sep 17 00:00:00 2001 From: ricky Date: Mon, 10 Feb 2020 12:42:59 -0500 Subject: [PATCH] Ensure we pass history to UnlockPage component (#8017) * Add .isRequired to history propType definition * Ensure we pass history down to the component --- ui/app/pages/unlock-page/unlock-page.component.js | 2 +- ui/app/pages/unlock-page/unlock-page.container.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/pages/unlock-page/unlock-page.component.js b/ui/app/pages/unlock-page/unlock-page.component.js index 2b6916bd7..1fc33c360 100644 --- a/ui/app/pages/unlock-page/unlock-page.component.js +++ b/ui/app/pages/unlock-page/unlock-page.component.js @@ -14,7 +14,7 @@ export default class UnlockPage extends Component { } static propTypes = { - history: PropTypes.object, + history: PropTypes.object.isRequired, isUnlocked: PropTypes.bool, onImport: PropTypes.func, onRestore: PropTypes.func, diff --git a/ui/app/pages/unlock-page/unlock-page.container.js b/ui/app/pages/unlock-page/unlock-page.container.js index 2f4687f82..88420c5a5 100644 --- a/ui/app/pages/unlock-page/unlock-page.container.js +++ b/ui/app/pages/unlock-page/unlock-page.container.js @@ -55,6 +55,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { onImport, onRestore: onImport, onSubmit: ownPropsSubmit || onSubmit, + history, } }