chore: Improve toasts

This commit is contained in:
Tom Moor
2021-01-02 21:47:02 -08:00
parent bb81aa0065
commit 9df02d6fd4
32 changed files with 101 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ class UserDelete extends React.Component<Props> {
await this.props.auth.deleteUser();
this.props.auth.logout();
} catch (error) {
this.props.ui.showToast(error.message);
this.props.ui.showToast(error.message, { type: "error" });
} finally {
this.isDeleting = false;
}