We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3bcd59 commit 65268c8Copy full SHA for 65268c8
src/js/cache.js
@@ -21,7 +21,7 @@ export function handle_tram_compositions(cache, data_source) {
21
const first_wagon_entry = cache.find(entry => entry.inv_number == first_wagon && entry.type == 'tram');
22
const second_wagon_entry = cache.find(entry => entry.inv_number == second_wagon && entry.type == 'tram');
23
24
- const composition_inv_number = `${first_wagon}/${second_wagon % 100}`;
+ const composition_inv_number = `${first_wagon}/${(second_wagon % 100).toString().padStart(2, '0')}`;
25
const composition_entry = cache.find(entry => entry.inv_number == composition_inv_number);
26
27
if(!first_wagon_entry || !second_wagon_entry && data_source == 'avl') {
0 commit comments