Skip to content

Commit

Permalink
fix: compare recipient address with no case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Dec 16, 2024
1 parent c45b37d commit 3422a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function ActivityDetails(props: {
outputToken = COW[chainId as SupportedChainId]
}

const isCustomRecipient = Boolean(order?.receiver && order.owner !== order.receiver)
const isCustomRecipient = Boolean(order?.receiver && order.owner.toLowerCase() !== order.receiver.toLowerCase())

return (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Order } from 'legacy/state/orders/actions'

export function getIsCustomRecipient({ owner, receiver }: Pick<Order, 'owner' | 'receiver'>): boolean {
return Boolean(receiver && owner !== receiver)
return Boolean(receiver && owner.toLowerCase() !== receiver.toLowerCase())
}

0 comments on commit 3422a7f

Please sign in to comment.