db-vendo-client/format/transfers.js
dabund24 b935802f4e
fix dbweb options possibly being null (#47)
* fix `maxUmstiege` option possibly being `null` for `dbweb` profile

* fix `zwischenhalte` option possibly being `null` for `dbweb` profile

* update `dbweb` integration test fixtures
2026-04-26 12:24:27 +02:00

10 lines
256 B
JavaScript

const formatTransfers = (transfers) => {
if (transfers === null || transfers === -1) { // profiles may not accept -1: https://github.com/public-transport/db-vendo-client/issues/5
return undefined;
}
return transfers;
};
export {
formatTransfers,
};