From a62d0dd8b97f8068d82aad7658b23654c006e0b4 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Wed, 23 Jun 2021 19:01:07 +0100 Subject: [PATCH] feat(auth): use Strings.createUsername in app settings --- scenes/SceneEditAccount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/SceneEditAccount.js b/scenes/SceneEditAccount.js index 206be235..44a00901 100644 --- a/scenes/SceneEditAccount.js +++ b/scenes/SceneEditAccount.js @@ -192,7 +192,7 @@ export default class SceneEditAccount extends React.Component { }; _handleUsernameChange = (e) => { - this.setState({ [e.target.name]: e.target.value.toLowerCase() }); + this.setState({ [e.target.name]: Strings.createUsername(e.target.value) }); }; _handleDelete = async (res) => {