Skip to content

Commit

Permalink
fix(wallet): Update useEffect deps for number pad text in Amount comp…
Browse files Browse the repository at this point in the history
…onent
  • Loading branch information
coreyphillips committed Jan 25, 2024
1 parent a135849 commit f414b07
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/screens/Wallets/Send/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,13 @@ const Amount = ({ navigation }: SendScreenProps<'Amount'>): ReactElement => {
useEffect(() => {
const result = getNumberPadText(outputAmount, unit);
setText(result);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [transaction.outputs, outputAmount, selectedWallet, selectedNetwork]);
}, [
transaction.outputs,
outputAmount,
selectedWallet,
selectedNetwork,
unit,
]);

const amount = useMemo((): number => {
return convertToSats(text, unit);
Expand Down

0 comments on commit f414b07

Please sign in to comment.