mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix: deactivate account post loading (#3022)
This commit is contained in:
committed by
sriram veeraghanta
parent
151ec259d8
commit
68dcfcd451
@@ -1,4 +1,4 @@
|
||||
import React, {useState } from "react";
|
||||
import React, { useState } from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import { mutate } from "swr";
|
||||
import { useTheme } from "next-themes";
|
||||
@@ -67,8 +67,10 @@ export const SwitchOrDeleteAccountModal: React.FC<Props> = (props) => {
|
||||
title: "Success!",
|
||||
message: "Account deleted successfully.",
|
||||
});
|
||||
handleClose();
|
||||
mutate("CURRENT_USER_DETAILS", null);
|
||||
setTheme("system");
|
||||
router.push("/");
|
||||
handleClose();
|
||||
})
|
||||
.catch((err) =>
|
||||
setToastAlert({
|
||||
|
||||
Reference in New Issue
Block a user