chore: Block all email providers from being added as team domains (#3678)

This commit is contained in:
Tom Moor
2022-06-21 11:29:43 +03:00
committed by GitHub
parent 9cd3ec0868
commit 305de71e8b
8 changed files with 56 additions and 27 deletions

View File

@@ -59,12 +59,12 @@ function Security() {
setData(newData);
await auth.updateTeam(newData);
showSuccessMessage();
setDomainsChanged(false);
} catch (err) {
setDomainsChanged(true);
showToast(err.message, {
type: "error",
});
} finally {
setDomainsChanged(false);
}
},
[auth, showSuccessMessage, showToast]