Skip to content

Commit

Permalink
UHF-9588: Remove context from two console.warns that was added there …
Browse files Browse the repository at this point in the history
…by mistate
  • Loading branch information
teroelonen committed Mar 11, 2024
1 parent 8852a99 commit da572b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/js/linkedevents.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/js/react/apps/linkedevents/components/DateSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function DateSelect() {
}
} else {
if (isOutOfRange({ startDate: start, endDate })) {
console.warn('Selected start date is out of range with end date, setting end date to next day after start date.', {}, {context: 'Events search'});
console.warn('Selected start date is out of range with end date, setting end date to next day after start date.');
setEndDate(start?.plus({ 'days': 1 }));
}
setStartDate(start);
Expand All @@ -92,7 +92,7 @@ function DateSelect() {
}
} else {
if (isOutOfRange({ startDate, endDate: end })) {
console.warn('Selected end date is out of range, setting end date to next day after start date.', {}, {context: 'Events search'});
console.warn('Selected end date is out of range, setting end date to next day after start date.');
setEndDate(startDate?.plus({ 'days': 1 }));
} else {
setEndDate(end);
Expand Down
8 changes: 0 additions & 8 deletions translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -1095,14 +1095,6 @@ msgctxt "Events search"
msgid "Invalid end date"
msgstr "Virheellinen lopetuspäivämäärä"

msgctxt "Events search"
msgid "Selected start date is out of range with end date, setting end date to next day after start date."
msgstr "Valittu aloituspäivämäärä on myöhemmin kuin lopetuspäivmäärä, vaihdetaan lopetuspäivämäärä aloituspäivämärää seuraavaksi päiväksi."

msgctxt "Events search"
msgid "Selected end date is out of range, setting end date to next day after start date."
msgstr "Valittu lopetuspäivämäärä on aiemmin kuin aloituspäivmäärä, vaihdetaan lopetuspäivämäärä aloituspäivämärää seuraavaksi päiväksi."

msgctxt "Events search"
msgid "Select a time period in which the event takes place"
msgstr "Valitse ajankohta, johon tapahtuma sijoittuu"
Expand Down
8 changes: 0 additions & 8 deletions translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -1097,14 +1097,6 @@ msgctxt "Events search"
msgid "Invalid end date"
msgstr "Ogiltigt slutdatum"

msgctxt "Events search"
msgid "Selected start date is out of range with end date, setting end date to next day after start date."
msgstr "Det valda startdatumet ligger utanför intervallet med slutdatum, slutdatumet ställs in till nästa dag efter startdatum."

msgctxt "Events search"
msgid "Selected end date is out of range, setting end date to next day after start date."
msgstr "Det valda slutdatumet ligger utanför intervallet, slutdatumet ställs in till nästa dag efter startdatumet."

msgctxt "Events search"
msgid "Select a time period in which the event takes place"
msgstr "Välj tidsperiod då evenemanget äger rum"
Expand Down

0 comments on commit da572b5

Please sign in to comment.