Skip to content

Commit

Permalink
Fix top up form 0 default value
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDr17 committed Jan 29, 2024
1 parent 30b1f21 commit 0cc498d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/common/TopUpForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const TopUpForm = ({ primaryCurrency, secondaryCurrency }: Props) => {
const dispatch = useAppDispatch();

const [inputValues, setInputValues] = useState({
primary: '0',
secondary: '0',
primary: '',
secondary: '',
});

const primaryInputMask = useMemo(() => {
Expand Down Expand Up @@ -72,8 +72,8 @@ const TopUpForm = ({ primaryCurrency, secondaryCurrency }: Props) => {
dispatch(addProfitToBalanceLocal(sum));

setInputValues({
primary: '0',
secondary: '0',
primary: '',
secondary: '',
});

dispatch(hideModal());
Expand Down

0 comments on commit 0cc498d

Please sign in to comment.