fix: patch version 2.1

This commit is contained in:
Arkaprabha Chakraborty
2026-02-13 00:17:17 +05:30
parent 2a46aa7d79
commit f9863d9dfb
4 changed files with 32 additions and 8 deletions

View File

@@ -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