Skip to content

Commit 749145f

Browse files
committed
Rename a constant to something more descriptive
1 parent 3bc9e42 commit 749145f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/views/building-hours/stateful-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import delay from 'delay'
1616
import {CENTRAL_TZ} from './lib'
1717
import {GH_PAGES_URL} from '../../globals'
1818

19-
const githubBaseUrl = GH_PAGES_URL('building-hours.json')
19+
const buildingHoursUrl = GH_PAGES_URL('building-hours.json')
2020

2121
const groupBuildings = (buildings: BuildingType[], favorites: string[]) => {
2222
const favoritesGroup = {
@@ -109,7 +109,7 @@ export class BuildingHoursView extends React.PureComponent<Props, State> {
109109
}
110110

111111
fetchData = async () => {
112-
let {data: buildings} = await fetchJson(githubBaseUrl).catch(err => {
112+
let {data: buildings} = await fetchJson(buildingHoursUrl).catch(err => {
113113
reportNetworkProblem(err)
114114
return defaultData
115115
})

0 commit comments

Comments
 (0)