forked from MapComplete/MapComplete
UX: don't allow reviews longer then _or equal_ 1000 characters, see #2452
This commit is contained in:
parent
3842ed4b39
commit
dadf4254e4
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
let connection = state.osmConnection
|
||||
|
||||
let hasError: Store<undefined | "too_long"> = opinion.mapD((op) => {
|
||||
const tooLong = op.length > FeatureReviews.REVIEW_OPINION_MAX_LENGTH
|
||||
const tooLong = op.length >= FeatureReviews.REVIEW_OPINION_MAX_LENGTH
|
||||
if (tooLong) {
|
||||
return "too_long"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue