diff --git a/frontend-react/src/components/user/ProfileModal.tsx b/frontend-react/src/components/user/ProfileModal.tsx index 70fa41692..94979aaf4 100644 --- a/frontend-react/src/components/user/ProfileModal.tsx +++ b/frontend-react/src/components/user/ProfileModal.tsx @@ -60,6 +60,8 @@ const ProfileModal: React.FC = ({ 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 = ({ value={profile.bio ?? ""} setValue={(value: string) => handleChange({ bio: value })} label="Bio" + limit={10000} /> diff --git a/graphql-schemas/user.js b/graphql-schemas/user.js index 1c1760565..fa19378ad 100644 --- a/graphql-schemas/user.js +++ b/graphql-schemas/user.js @@ -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, })