Skip to content

Commit

Permalink
Revert term change for stillOwnSpaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tulpenkiste committed Dec 19, 2024
1 parent 3c3453b commit c598e35
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function ManageAccount() {
const client = useClient();
const mfa = createMfaResource();

const stillOwnServers = createMemo(
const stillOwnSpaces = createMemo(
() =>
client().servers.filter((server) => server.owner?.self || false).length >
0
Expand Down Expand Up @@ -327,17 +327,17 @@ function ManageAccount() {
{t("app.settings.pages.account.manage.disable")}
</CategoryButton>
<CategoryButton
action={stillOwnServers() ? undefined : "chevron"}
disabled={mfa.isLoading || stillOwnServers()}
action={stillOwnSpaces() ? undefined : "chevron"}
disabled={mfa.isLoading || stillOwnSpaces()}
onClick={deleteAccount}
icon={
<MdDelete {...iconSize(22)} fill={theme!.customColours.error.color} />
}
description={t("app.settings.pages.account.manage.delete_description")}
>
{t(
stillOwnServers()
? "app.settings.pages.account.manage.delete_still_own_servers"
stillOwnSpaces()
? "app.settings.pages.account.manage.delete_still_own_spaces"
: "app.settings.pages.account.manage.delete"
)}
</CategoryButton>
Expand Down

0 comments on commit c598e35

Please sign in to comment.