Skip to content

Commit

Permalink
fix: prevent users from saving empty phone number (#11413)
Browse files Browse the repository at this point in the history
* fix: prevent users from saving empty phone number

* fix: prevent users from saving empty phone number
  • Loading branch information
gkartalis authored Jan 17, 2025
1 parent c42656f commit 7787e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Scenes/MyAccount/MyAccountEditPhone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MyAccountEditPhone: React.FC<{ me: MyAccountEditPhone_me$data }> = ({ me }
}, [navigation, phone, isValidNumber])

const canSave = () => {
if (!isValidNumber && !!phone.trim()) {
if (!isValidNumber || !!phone.trim()) {
return false
} else {
return true
Expand Down

0 comments on commit 7787e8d

Please sign in to comment.