Skip to content

Commit

Permalink
Fix TrafficJams counter "0"
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Nov 22, 2023
1 parent 4f10e85 commit 3610e09
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/api/main-page/main-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export const MainPageApi = {
},

getTrafficJamsCounter: async () => {
return await fetchApi(
TRAFFIC_JAMS_URL,
{ dataField: 'score' },
);
return String(await fetchApi(TRAFFIC_JAMS_URL, { dataField: 'score' }));
},

getA11yTransportCounters: async () => {
Expand Down

0 comments on commit 3610e09

Please sign in to comment.