Skip to content

Commit e13717f

Browse files
committed
fix: preserve focus on source amount taps
1 parent 03a9b04 commit e13717f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • app/components/UI/Bridge/Views/BridgeView

app/components/UI/Bridge/Views/BridgeView/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ const BridgeViewContent = ({ latestSourceBalance }: BridgeViewContentProps) => {
364364

365365
const handleFlipTokensPress = useCallback(() => {
366366
resetToTokenMode();
367-
handleSwitchTokens(destTokenAmount)();
367+
handleSwitchTokens(destTokenAmount)().catch((error) => {
368+
console.error('Error switching bridge tokens:', error);
369+
});
368370
}, [destTokenAmount, handleSwitchTokens, resetToTokenMode]);
369371

370372
const handleDestTokenPress = () =>

0 commit comments

Comments
 (0)