Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into injective
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 5, 2025
2 parents fb55098 + 554d79d commit 7039b55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/features/transfer/TransferTokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,11 @@ function useFormInitialValues(): TransferFormValues {
return useMemo(() => {
const firstToken = warpCore.tokens[0];
const connectedToken = firstToken.connections?.[0];
const chainsValid = originQuery && destinationQuery;

return {
origin: originQuery ? originQuery : firstToken.chainName,
destination: destinationQuery ? destinationQuery : connectedToken?.token?.chainName || '',
origin: chainsValid ? originQuery : firstToken.chainName,
destination: chainsValid ? destinationQuery : connectedToken?.token?.chainName || '',
tokenIndex: tokenIndex,
amount: '',
recipient: '',
Expand Down

0 comments on commit 7039b55

Please sign in to comment.