Skip to content

Commit

Permalink
fix optional prop
Browse files Browse the repository at this point in the history
  • Loading branch information
minajevs committed Aug 28, 2024
1 parent 1890304 commit 3951fad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const FocusableAmountInput = memo(function FocusableAmountInput({
...props
}: FocusableAmountInputProps) {
const [isNegative, setIsNegative] = useState(true);
const [focused, setFocused] = useState(defaultFocused);
const [focused, setFocused] = useState(defaultFocused ?? false);

const maybeApplyNegative = (amount: number, negative: boolean) => {
const absValue = Math.abs(amount);
Expand Down

0 comments on commit 3951fad

Please sign in to comment.