Skip to content

Commit

Permalink
Merge pull request #37041 from neonbhai/money-request-form-selection-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cead22 authored Feb 21, 2024
2 parents 8bcdb06 + c30f483 commit 575cb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/steps/MoneyRequestAmountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function MoneyRequestAmountForm(
*/
const onMouseDown = (event: React.MouseEvent<Element, MouseEvent>, ids: string[]) => {
const relatedTargetId = (event.nativeEvent?.target as HTMLElement)?.id;
if (ids.includes(relatedTargetId)) {
if (!ids.includes(relatedTargetId)) {
return;
}

Expand All @@ -127,7 +127,7 @@ function MoneyRequestAmountForm(
}, []);

useEffect(() => {
if (!currency || typeof amount === 'number') {
if (!currency || typeof amount !== 'number') {
return;
}
initializeAmount(amount);
Expand Down

0 comments on commit 575cb5b

Please sign in to comment.