handleLogoutClick(i: Navbar) {
i.setState({ showDropdown: false, expanded: false });
UserService.Instance.logout();
- i.context.router.history.push("/");
+ window.location.href = "/";
location.reload();
}
i.setState(i.state);
}
- handleLogoutClick(i: Settings) {
+ handleLogoutClick(_i: Settings) {
UserService.Instance.logout();
- i.context.router.history.push("/");
+ window.location.href = "/";
+ location.reload();
}
handleDeleteAccount(i: Settings, event: any) {
});
UserService.Instance.logout();
window.location.href = "/";
+ location.reload();
} else if (op == UserOperation.BlockPerson) {
let data = wsJsonToRes<BlockPersonResponse>(msg).data;
this.setState({ personBlocks: updatePersonBlock(data) });