mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2026-05-03 07:11:47 +03:00
fix maxUmstiege option possibly being null for dbweb profile
This commit is contained in:
parent
a2e3a36e20
commit
a1537924a9
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const formatTransfers = (transfers) => {
|
||||
if (transfers === -1) { // profiles may not accept -1: https://github.com/public-transport/db-vendo-client/issues/5
|
||||
if (transfers === null || transfers === -1) { // profiles may not accept -1: https://github.com/public-transport/db-vendo-client/issues/5
|
||||
return undefined;
|
||||
}
|
||||
return transfers;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue