mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 05:54:07 +08:00
Updating reload code.
This commit is contained in:
@@ -24,7 +24,7 @@ class SuspendedAccount extends Component {
|
||||
e.preventDefault();
|
||||
if (validate.displayName(displayName)) {
|
||||
editName(displayName)
|
||||
.then(() => window.reload())
|
||||
.then(() => location.reload())
|
||||
.catch((error) => {
|
||||
this.setState({alert: lang.t(`error.${error.message}`)});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user