You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2022. It is now read-only.
Describe the bug
When a user removes a phone number from their profile the way the update query is sent to the api causes a GraphQL error for a bad phone number format. Sentry reference:
Variable "$profile" got invalid value "" at "profile.mobilePhone"; Expected type "PhoneNumber". Value is not a valid phone number of the form +17895551234 (10-15 digits):
The reason for this issue is that an empty string is being used in the GraphQL query. The Scalar PhoneNumber only accepts null and standard E.164 specification (e.g. +11234567890) string.
To remove the value a null need to be provided instead of the empty string from the form. So it needs to be converted before sending to the api.