Skip to content

Commit 5fdf204

Browse files
author
Michael Jordan
committed
fix lint errors
1 parent b2ef3f3 commit 5fdf204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@internationalized/number/src/NumberParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class NumberParserImpl {
195195
let integerPart: string;
196196
let parsedIntegerPart: number;
197197
let decimalPart;
198-
if (groupSymbolMatch?.length > 0 && abs.length - groupSymbolMatch.length > this.options.minimumIntegerDigits) {
198+
if (groupSymbolMatch && groupSymbolMatch.length > 0 && abs.length - groupSymbolMatch.length > this.options.minimumIntegerDigits) {
199199
integerPart = abs.slice(0, abs.indexOf(groupSymbolMatch[groupSymbolMatch.length - 1]));
200200
decimalPart = abs.slice(abs.indexOf(groupSymbolMatch[groupSymbolMatch.length - 1]) + 1, abs.length);
201201
integerPart = integerPart.replace(GROUPING_SYMBOLS_REGEX, '');

0 commit comments

Comments
 (0)