feat: update display name

This commit is contained in:
Henry
2025-02-01 11:37:16 +00:00
parent bee45aab3f
commit e321aa2f5d
9 changed files with 120 additions and 4 deletions

View File

@@ -20,6 +20,11 @@ export default function Avatar({
const updateUser = api.user.update.useMutation({
onSuccess: async () => {
showPopup({
header: "Profile image updated",
message: "Your profile image has been updated.",
icon: "success",
});
try {
await utils.user.getUser.refetch();
} catch (e) {