Skip to content

Commit

Permalink
fix: replace all
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jan 16, 2024
1 parent daf532a commit 71b18f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/beacon-ui/src/components/bug-report-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ const BugReportForm = (props: any) => {
const [isFormValid, setFormValid] = createSignal(false)

const isTitleValid = () => {
return title().trim().length >= 10
return title().replace(/ /gi, '').length > 10
}

const isDescriptionValid = () => {
return description().trim().length >= 30
return description().replace(/ /gi, '').length >= 30
}

const areStepsValid = () => {
return steps().trim().length >= 30
return steps().replace(/ /gi, '').length >= 30
}

const localStorageToMetadata = () => {
Expand Down

0 comments on commit 71b18f3

Please sign in to comment.