diff --git a/ts/components/registration/utils/index.tsx b/ts/components/registration/utils/index.tsx index 3f6db79aa..3ea00dfc6 100644 --- a/ts/components/registration/utils/index.tsx +++ b/ts/components/registration/utils/index.tsx @@ -17,7 +17,7 @@ export function sanitizeDisplayNameOrToast( onDisplayNameError(errorString); // this is is either calling dispatch in the caller or just `setDisplayNameError` } - return sanitizedName; + return trimName; } catch (e) { if (dispatch) { dispatch(onDisplayNameError(window.i18n('displayNameErrorDescriptionShorter')));