Fix signature confirmation PropType error (#10317)

Upon the first render, the "original" signature request confirmation
page would trigger a PropType error. This was caused by unexpected
mutation of the state props. The container has been updated to avoid
mutating the props, and now the PropType warning is no longer present.
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent f381f41cb2
commit e6f4c89945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/app/components/app/signature-request-original/signature-request-original.container.js

@ -44,8 +44,7 @@ function mergeProps(stateProps, dispatchProps, ownProps) {
txData, txData,
} = ownProps } = ownProps
const { allAccounts } = stateProps const { allAccounts, ...otherStateProps } = stateProps
delete stateProps.allAccounts
const { const {
type, type,
@ -69,7 +68,7 @@ function mergeProps(stateProps, dispatchProps, ownProps) {
return { return {
...ownProps, ...ownProps,
...stateProps, ...otherStateProps,
...dispatchProps, ...dispatchProps,
fromAccount, fromAccount,
txData, txData,

Loading…
Cancel
Save