Skip to content

Commit cd26310

Browse files
committed
Minor refactor
1 parent a46f3b8 commit cd26310

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/kits/core-ui/components/helpers/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export const getTotalQuantityByOffer = (savedOffers, offerId) => {
495495
export const formatDateForReader = (date) => {
496496
const dateFormat = new Date(date);
497497

498-
return new Intl.DateTimeFormat('en-US', {
498+
return new Intl.DateTimeFormat(navigator.language || 'en-US', {
499499
month: 'long',
500500
day: 'numeric'
501501
}).format(dateFormat);

lib/kits/paged-publication/viewer.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ class Viewer extends MicroEvent {
302302

303303
hotspotRequest.pages.forEach(({pageNumber}) => {
304304
for (const hotspotId in this.hotspots) {
305-
if (hotspots[hotspotId]) continue;
305+
if (hotspots[hotspotId]) {
306+
continue;
307+
}
306308

307309
const {
308310
id,

0 commit comments

Comments
 (0)