Skip to content

Commit

Permalink
fix: fixed bug with input form not resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Aug 4, 2024
1 parent 7452f33 commit 6f09a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/components/place-limit-tool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ export const PlaceLimitTool: FunctionComponent<PlaceLimitToolProps> = observer(
Boolean(swapState.marketState.error)
);
}

return Boolean(swapState.error) || !swapState.isBalancesFetched;
}, [
swapState.error,
Expand Down Expand Up @@ -589,6 +588,7 @@ export const PlaceLimitTool: FunctionComponent<PlaceLimitToolProps> = observer(
setIsSendingTx(true);
await swapState.placeLimit();
swapState.reset();
setAmountSafe("fiat", "");
setReviewOpen(false);
setIsSendingTx(false);
}}
Expand Down

0 comments on commit 6f09a42

Please sign in to comment.