Skip to content

Commit

Permalink
fix 0.0* numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor committed Nov 28, 2023
1 parent 68efcc7 commit 359fa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/order_input/MarketOrderInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function MarketOrderInput() {
const dispatch = useAppDispatch();

// create a regex to match a trailing decimal
var regex = /^\d+\.$/;
var regex = /^\d+\.?\d*$/;

useEffect(() => {
if (
Expand Down

0 comments on commit 359fa1b

Please sign in to comment.