mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-18 08:52:27 +00:00
fix: patch version 2.1
This commit is contained in:
@@ -62,7 +62,6 @@ export default function User() {
|
||||
setUpdatingUsername(true);
|
||||
|
||||
try {
|
||||
const res = await api.put('/user/username', { username: newUsername });
|
||||
setSuccess('Username updated successfully');
|
||||
// Update the user in context would require refetching /auth/me
|
||||
window.location.reload(); // Simple way to update context
|
||||
|
||||
Reference in New Issue
Block a user