@olea-bps/base 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olea-bps/base",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "OLEA base library",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -56,10 +56,10 @@ export default function PublicTransportTicketView() {
56
56
  const [ticketBarcode, ticketOwner, ticketValidFrom, ticketValidTo, refreshTicket] = usePublicTransportTicket();
57
57
  // Gültikeitsangabem in lokaliesierte Strings umwandeln
58
58
  // Es wird immer in deutsche Datumangaben umgewandelt, weil das Deutschlandticket nur in deutschland gültig ist.
59
- const localizedTicketValidFrom = ticketValidFrom?.isValid()
59
+ const localizedTicketValidFrom = ticketValidFrom?.isValid
60
60
  ? ticketValidFrom?.setLocale('de')?.toLocaleString()
61
61
  : null;
62
- const localizedTicketValidTo = ticketValidTo?.isValid()
62
+ const localizedTicketValidTo = ticketValidTo?.isValid
63
63
  ? ticketValidTo?.setLocale('de')?.toLocaleString()
64
64
  : null;
65
65