-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/admin user name change functionality #2840
base: dev
Are you sure you want to change the base?
Feat/admin user name change functionality #2840
Conversation
…dminUserNameChangeFunctionality
.then(res => console.log(res)) | ||
.catch(error => console.log(error.response)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.log and console.error. Use toast to show notifications.
Also resolve the conflicts on your branch |
event.preventDefault(); | ||
axios | ||
.patch( | ||
`https://api.zuri.chat/organizations/${organization_id}/members/${user_member_id}/profile`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the base url constant provided in the app
it should be coming from @zuri-utilities
} | ||
} | ||
) | ||
.then(res => console.log(res)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you chaining a .then
if you do not intend to use the response?
FRO-198
My PR Fixes Fixes FRO-198 - Allows an admin User to update their Username in the backend.
Linear Ticket link:- https://linear.app/team-brainbox/issue/FRO-198/zuri-chat-changeset-username
Changes proposed
What were you told to do?
UPDATE AND SET USERNAME FOR ADMIN SETTINGS
What did you do?
Check List (Check all the applicable boxes)
🚨Please review the style guide for contributing and guidelines for contributing to this repository.
Screenshots/ Videos