Skip to content

Commit

Permalink
fix: support pendingApprovals case isSimulationEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwand committed Jan 16, 2025
1 parent 8b6ec71 commit 7de1a69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class SignatureRequest extends PureComponent {
}

const mapStateToProps = (state) => ({
isSimulationEnabled: selectTypedSignSimulationEnabled(state, Object.values(selectPendingApprovals(state) || {})[0].id),
isSimulationEnabled: selectTypedSignSimulationEnabled(state, Object.values(selectPendingApprovals(state) || {})[0]?.id),
securityAlertResponse: state.signatureRequest.securityAlertResponse,
selectedAddress: selectSelectedInternalAccountFormattedAddress(state),
signatureRequest: Object.values(selectPendingApprovals(state) || {})[0],
Expand Down

0 comments on commit 7de1a69

Please sign in to comment.