Rocket.Chat.ReactNative
Rocket.Chat.ReactNative copied to clipboard
Bug - Prevent Updating Name, Username, Email, and New Password with Empty/Whitespace Values
Description:
Attempting to update the user profile with empty or whitespace values for the "name," "username," "email," or "newPassword" fields results in unexpected behavior. The Save Changes button should be disabled when any of these fields are empty or contain only whitespace.
Environment Information:
Rocket.Chat Server Version: 6.5.0 Rocket.Chat App Version: 4.47.0 Device Name: Redmi note 5 pro OS Version: Android
Steps to reproduce:
1.Open the user profile. 2.Modify the "name," "username," "email," or "newPassword" fields. 3.Leave the fields empty or enter only whitespace. 4.Attempt to save changes.
Expected behavior:
The Save Changes button should be disabled, and no update should occur when any of the specified fields are empty or contain only whitespace.
Actual behavior:
https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/130109852/3bc70edf-3008-460c-8d3a-0557cf5cc14b
Additional context:
Fix : #5544
Hey @diegolmello Can I work on this issue including the changes you mentioned?