Skip to content

Commit

Permalink
removedNumber check
Browse files Browse the repository at this point in the history
  • Loading branch information
CorbinBullard committed Oct 10, 2023
1 parent 5ee5421 commit f0d1dd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { t } from '../translation';

export default function validateMaxValue(v: unknown, max: Number) {
if (typeof Number(v) === 'number' && Number(v) > +max) {
if (Number(v) > +max) {
return t('Value cannot exceed %s', max);
}
return false;
Expand Down

0 comments on commit f0d1dd2

Please sign in to comment.