diff --git a/package.json b/package.json index 8b217e1..ddf9ae6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plunk", - "version": "1.0.12", + "version": "1.0.13", "private": true, "license": "agpl-3.0", "workspaces": { diff --git a/packages/dashboard/src/pages/settings/identity.tsx b/packages/dashboard/src/pages/settings/identity.tsx index 893e17e..2413356 100644 --- a/packages/dashboard/src/pages/settings/identity.tsx +++ b/packages/dashboard/src/pages/settings/identity.tsx @@ -94,13 +94,14 @@ export default function Index() { }), { loading: "Updating your sender name", - success: "Updated your sender name", + success: () => { + void projectsMutate(); + + return 'Updated your sender name'; + }, error: "Could not update sender name", }, ); - - await identityMutate(); - await projectsMutate(); }; const unlink = async () => { @@ -115,12 +116,14 @@ export default function Index() { }), { loading: "Unlinking your domain", - success: "Unlinked your domain", + success: () => { + void projectsMutate(); + + return 'Unlinked your domain'; + }, error: "Could not unlink domain", }, ); - - window.location.reload(); }; const domain = activeProject.email?.split("@")[1] ?? "";