signup username limit, json_metadata remove community field

This commit is contained in:
feruz 2020-07-21 14:55:02 +03:00
parent b2191347a7
commit 3fcafea77b
2 changed files with 1 additions and 3 deletions

View File

@ -36,7 +36,7 @@ const RegisterScreen = ({ navigation }) => {
const _handleUsernameChange = ({ value, getAccountsWithUsername }) => {
setUsername(value);
if (!value || value.length <= 2) {
if (!value || value.length <= 2 || value.length >= 16) {
setIsUsernameValid(false);
return;
}

View File

@ -96,7 +96,6 @@ export const makeJsonMetadataReply = (tags) => ({
tags,
app: `ecency/${VersionNumber.appVersion}-mobile`,
format: 'markdown+html',
community: 'hive-125125',
});
export const makeJsonMetadata = (meta, tags) =>
@ -104,7 +103,6 @@ export const makeJsonMetadata = (meta, tags) =>
tags,
app: `ecency/${VersionNumber.appVersion}-mobile`,
format: 'markdown+html',
community: 'hive-125125',
});
export const makeJsonMetadataForUpdate = (oldJson, meta, tags) => {