Skip to content

Commit

Permalink
Extra check for array
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Jun 19, 2024
1 parent c16764f commit fa1a780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const MsgTransferForm = ({ senderAddress, setMsgGetter, deleteMsg }: MsgTransfer
return;
}

setSourcePort(trace.chain?.path?.split("/")[0] || "transfer");
setSourcePort(trace.chain?.path?.split("/")?.[0] || "transfer");
setSourceChannel(trace.chain?.channel_id || "");
}, [chain.assets, denom]);

Expand Down

0 comments on commit fa1a780

Please sign in to comment.