Merge pull request #169 from useplunk/165-unlink-domain-button-does-not-work

Fix: Unlink domain properly executes
This commit is contained in:
Dries Augustyns
2025-04-16 14:48:03 +02:00
committed by GitHub
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plunk", "name": "plunk",
"version": "1.0.12", "version": "1.0.13",
"private": true, "private": true,
"license": "agpl-3.0", "license": "agpl-3.0",
"workspaces": { "workspaces": {
@@ -94,13 +94,14 @@ export default function Index() {
}), }),
{ {
loading: "Updating your sender name", loading: "Updating your sender name",
success: "Updated your sender name", success: () => {
void projectsMutate();
return 'Updated your sender name';
},
error: "Could not update sender name", error: "Could not update sender name",
}, },
); );
await identityMutate();
await projectsMutate();
}; };
const unlink = async () => { const unlink = async () => {
@@ -115,12 +116,14 @@ export default function Index() {
}), }),
{ {
loading: "Unlinking your domain", loading: "Unlinking your domain",
success: "Unlinked your domain", success: () => {
void projectsMutate();
return 'Unlinked your domain';
},
error: "Could not unlink domain", error: "Could not unlink domain",
}, },
); );
window.location.reload();
}; };
const domain = activeProject.email?.split("@")[1] ?? ""; const domain = activeProject.email?.split("@")[1] ?? "";