Skip to content

Commit 7785dbf

Browse files
committed
Improve error messages
1 parent 352fd80 commit 7785dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DateTimeInput/NativeInput.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function NativeInput({
3030
case 'second':
3131
return getISOLocalDateTime;
3232
default:
33-
throw new Error('Invalid valueType.');
33+
throw new Error('Invalid valueType');
3434
}
3535
})();
3636

@@ -43,7 +43,7 @@ export default function NativeInput({
4343
case 'second':
4444
return 1;
4545
default:
46-
throw new Error('Invalid valueType.');
46+
throw new Error('Invalid valueType');
4747
}
4848
})();
4949

0 commit comments

Comments
 (0)