From cc8feb45a5eed6df40510078a32553b67586cdda Mon Sep 17 00:00:00 2001 From: Xaroz Date: Wed, 5 Feb 2025 13:28:43 -0400 Subject: [PATCH] fix: only show persistence when both destination and origin are defined --- src/features/transfer/TransferTokenForm.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/transfer/TransferTokenForm.tsx b/src/features/transfer/TransferTokenForm.tsx index 83ea1e97..16bdf565 100644 --- a/src/features/transfer/TransferTokenForm.tsx +++ b/src/features/transfer/TransferTokenForm.tsx @@ -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: '',