s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
@@ -54,7 +54,7 @@ export default class ErrorBoundary extends React.PureComponent {
|
||||
if (!PlatformPeg.get()) return;
|
||||
|
||||
MatrixClientPeg.get().stopClient();
|
||||
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
||||
MatrixClientPeg.get().store.deleteAllData().then(() => {
|
||||
PlatformPeg.get().reload();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user