Skip to content

Commit

Permalink
fix: description character limit (#138)
Browse files Browse the repository at this point in the history
## Why?

A user experienced an issue caused by the limit on description added to
the support forms' descriptions due to the 180 maximum length of
characters added.

## How?

- I bumped the character length to have a maximum length of 1000


## Contribution checklist?

- [x] The commit messages are detailed
- [x] The `build` command runs locally
- [x] Assets or static content are linked and stored in the project
- [x] Document filename is named after the slug
- [x] You've reviewed spelling using a grammar checker
- [x] For documentation, guides or references, you've tested the
commands and steps
- [x] You've done enough research before writing

## Security checklist?

- [x] Sensitive data has been identified and is being protected properly
- [x] Injection has been prevented (parameterized queries, no eval or
system calls)
- [x] The Components are escaping output (to prevent XSS)

---------

Co-authored-by: nlc616 <[email protected]>
  • Loading branch information
tobySolutions and nlc616 authored Aug 13, 2024
1 parent c660c0e commit efb61d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Support/form/NewRequestForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function NewRequestForm() {
type="textarea"
name="comment"
minLength={30}
maxLength={180}
maxLength={1000}
value={formValues.comment}
isRequired
bottomText="Description must contain at least 30 characters"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Support/form/ReportSiteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function ReportSiteForm() {
type="textarea"
name="comment"
minLength={30}
maxLength={180}
maxLength={1000}
value={formValues.comment}
isRequired
bottomText="Description must contain at least 30 characters"
Expand Down

0 comments on commit efb61d8

Please sign in to comment.