Skip to content

Commit

Permalink
feat: updateInputAmounts optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 30, 2025
1 parent 9804209 commit 5e10070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/Trading/components/TradingOperate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const TradingOperate: React.FC<TradingOperateProps> = ({ onMobileClose, id }) =>
updateOutput(activeTab, inputUsdCharcate1);
}

if (inputUsdCharcate2) {
if (inputUsdCharcate2 && inputUsdCharcate1) {
// swap token in amount
updateInputAmounts(activeTab, inputUsdCharcate2, inputUsdCharcate1);
}
Expand Down

0 comments on commit 5e10070

Please sign in to comment.