Skip to content

Commit 5d17fbb

Browse files
committed
refactor(validation): fix bad invocation of validationIssue
1 parent ff05ac7 commit 5d17fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/editor/util/validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function validate (
205205
case 'LATITUDE':
206206
const isNotLat = value > 90 || value < -90
207207
if (isNotLat) {
208-
return validationIssue(name, 'Field must be valid latitude.')
208+
return validationIssue('Field must be valid latitude.')
209209
}
210210
if (isOptionalAndEmpty && locationType !== null && (typeof locationType === 'number' && locationType <= 2)) {
211211
return validationIssue('Latitude and Longitude are required for your current location type')
@@ -330,7 +330,7 @@ export function validate (
330330
)
331331
)
332332
) {
333-
return validationIssue(name, 'Field must be a positive integer')
333+
return validationIssue('Field must be a positive integer')
334334
}
335335
return false
336336
case 'POSITIVE_NUM':

0 commit comments

Comments
 (0)