Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jan 9, 2025
1 parent bacef90 commit 3de0c29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sections/finance/components/finance-deposit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const FinanceDepositModal: FC<FinanceDepositModalProps> = ({ open, onClos
<FinanceModal
open={open}
onClose={onClose}
title="Deposit"
title="Deposit to"
tabs={depositTabs}
renderContent={renderContent}
maxWidth="xs"
Expand Down
5 changes: 3 additions & 2 deletions src/sections/finance/components/finance-deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const FinanceDeposit: FC<FinanceDepositProps> = ({ address, recipient, depositHo
notifyWarning(WARNING.INVALID_DEPOSIT_AMOUNT);
return;
}

// TODO refactor this!!!!!
try {
setLocalLoading(true);
await deposit({ recipient: recipient ?? address, amount });
Expand All @@ -97,11 +99,10 @@ const FinanceDeposit: FC<FinanceDepositProps> = ({ address, recipient, depositHo
} finally {
setLocalLoading(false);
}
}, [address, recipient, amount, balance, deposit, onClose]);
}, [address, recipient, amount, balance]);

const handleAmountChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const value = Number(event.target.value);

setAmount(value ?? undefined);

// Set appropriate error message
Expand Down
2 changes: 1 addition & 1 deletion src/sections/finance/components/finance-withdraw-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const FinanceWithdrawModal: FC<FinanceWithdrawModalProps> = ({ open, onCl
<FinanceModal
open={open}
onClose={onClose}
title="Withdraw"
title="Withdraw from"
tabs={withdrawTabs}
renderContent={renderContent}
maxWidth="xs"
Expand Down

0 comments on commit 3de0c29

Please sign in to comment.