Skip to content

Commit

Permalink
Warned bridge should not disable Approve
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 23, 2023
1 parent 631a428 commit f0ed035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/walletconnect/WcProposalForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const WcProposalForm = ({ proposal, onApprove, onReject }: ProposalFormProps): R
const chainIds = useMemo(() => getSupportedChainIds(configs, proposal.params), [configs, proposal.params])
const isUnsupportedChain = !chainIds.includes(chainId)

const isHighRisk = proposal.verifyContext.verified.validation === 'INVALID' || isBlockedBridge(origin)
const disabled = isUnsupportedChain || isScam || isWarnedBridge(origin) || (isHighRisk && !understandsRisk)
const isHighRisk = proposal.verifyContext.verified.validation === 'INVALID' || isWarnedBridge(origin)
const disabled = isUnsupportedChain || isScam || isBlockedBridge(origin) || (isHighRisk && !understandsRisk)

return (
<div className={css.container}>
Expand Down

0 comments on commit f0ed035

Please sign in to comment.