From 7ac06319609ad4820d3e1bd7d1bf8860c82b5c29 Mon Sep 17 00:00:00 2001 From: Jonah Lin <57741810+linjonah@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:06:46 -0700 Subject: [PATCH] Only set toToken from finite bridge machine if toChainId has been set --- packages/synapse-interface/slices/bridge/reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/synapse-interface/slices/bridge/reducer.ts b/packages/synapse-interface/slices/bridge/reducer.ts index d6c57e01a9..6800b8faaa 100644 --- a/packages/synapse-interface/slices/bridge/reducer.ts +++ b/packages/synapse-interface/slices/bridge/reducer.ts @@ -254,8 +254,8 @@ export const bridgeSlice = createSlice({ state.fromChainId = fromChainId state.fromToken = fromToken + state.toToken = state.toChainId ? toToken : null state.toChainId = toChainId - state.toToken = toToken state.fromChainIds = fromChainIds state.fromTokens = fromTokens state.toChainIds = toChainIds