From a1537924a99fe4da6b368cd5e941d87699611e13 Mon Sep 17 00:00:00 2001 From: dabund24 Date: Sat, 25 Apr 2026 18:56:40 +0200 Subject: [PATCH] fix `maxUmstiege` option possibly being `null` for `dbweb` profile --- format/transfers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/transfers.js b/format/transfers.js index c374a7dd..239e617b 100644 --- a/format/transfers.js +++ b/format/transfers.js @@ -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;