Skip to content

Commit

Permalink
Fixed console error generated by date helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
devAsadNur committed Sep 15, 2022
1 parent 28d09ad commit b42a63a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/utils/date-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function wepos_get_dayjs_date_format( dateFormat = wepos.wp_date_format )
let dayJsDateFormat = '';

for ( let i = 0; i < dateFormat.length; i++ ) {
char = dateFormat[i];
const char = dateFormat[i];

dayJsDateFormat += formatMap[char] ? formatMap[char] : char;
}
Expand Down Expand Up @@ -62,7 +62,7 @@ export function wepos_get_daterange_picker_date_format( dateFormat = wepos.wp_da
let dateRangePickerFormat = '';

for ( let i = 0; i < dateFormat.length; i++ ) {
char = dateFormat[i];
const char = dateFormat[i];

dateRangePickerFormat += formatMap[char] ? formatMap[char] : char;
}
Expand Down

0 comments on commit b42a63a

Please sign in to comment.