mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 19:55:46 -05:00
bio limit of 10000
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user