bio limit of 10000

This commit is contained in:
Sendou
2020-04-07 19:46:28 +03:00
parent da14db1ee1
commit 332bbaf660
2 changed files with 4 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ const ProfileModal: React.FC<ProfileModalProps> = ({
setError("Custom URL can only contain letters and numbers")
} else if (profile.weapons && profile.weapons.length > 5) {
setError("Weapon pool's max size is 5")
} else if (profile.bio && profile.bio.length > 10000) {
setError("Bio's max length is 10000")
} else {
setError(null)
}
@@ -164,6 +166,7 @@ const ProfileModal: React.FC<ProfileModalProps> = ({
value={profile.bio ?? ""}
setValue={(value: string) => handleChange({ bio: value })}
label="Bio"
limit={10000}
/>
</Box>
<Box mt="1em">

View File

@@ -188,7 +188,7 @@ const resolvers = {
}
}
if (args.bio && args.bio.length > 1000000) {
if (args.bio && args.bio.length > 10000) {
throw new UserInputError("bio too long", {
invalidArgs: args,
})