Skip to content

Commit

Permalink
Only set toToken from finite bridge machine if toChainId has been set
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Oct 10, 2023
1 parent 7e16bb9 commit 7ac0631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/synapse-interface/slices/bridge/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ac0631

Please sign in to comment.