mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2026-04-28 12:55:54 +03:00
* fix `maxUmstiege` option possibly being `null` for `dbweb` profile * fix `zwischenhalte` option possibly being `null` for `dbweb` profile * update `dbweb` integration test fixtures
10 lines
256 B
JavaScript
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,
|
|
};
|