Skip to content

Commit

Permalink
fix: exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chefjackson committed Sep 5, 2024
1 parent e3fde75 commit b173769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/views/Swap/V3Swap/hooks/useSwapInputError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function useSwapInputError(order: PriceOrder | undefined, currencyBalance
inputError = inputError ?? t('Enter a recipient')
} else if (
BAD_RECIPIENT_ADDRESSES.indexOf(formattedTo) !== -1 ||
(isClassicOrder(order) && involvesAddress(order.trade, formattedTo))
(isClassicOrder(order) && order.trade && involvesAddress(order.trade, formattedTo))
) {
inputError = inputError ?? t('Invalid recipient')
}
Expand Down

0 comments on commit b173769

Please sign in to comment.