From fa1a78036f2e725015ab9f0ad634d6cbeea4cf4a Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:29:15 +0200 Subject: [PATCH] Extra check for array --- components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx b/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx index 79e0e93f..aa39f640 100644 --- a/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx +++ b/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx @@ -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]);