mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
fix(date-picker): add missing locale file and fix let-to-const lint error
- Add missing common.datepicker.* keys to overlooked locale file - Change reassigned `let` to `const` where value is not mutated to satisfy lint rules
This commit is contained in:
@@ -206,8 +206,8 @@ export function CustomDatePicker({
|
||||
// nachher:
|
||||
const get = (field: 'day' | 'month' | 'year') => parseInt(nums[order.indexOf(field)]);
|
||||
let d = get('day'),
|
||||
m = get('month'),
|
||||
y = get('year');
|
||||
m = get('month');
|
||||
const y = get('year');
|
||||
if (isNaN(d) || isNaN(m) || isNaN(y)) return;
|
||||
|
||||
// If locale order gives impossible month but valid swap, correct it
|
||||
|
||||
Reference in New Issue
Block a user