Commit 8ff4459a authored by Andrew Hrdy's avatar Andrew Hrdy
Browse files

Fix error caused from linting change.

parent 2806cdb7
......@@ -27,8 +27,9 @@ export const setFacilities = (facilities) => {
try {
localStorage.setItem('facilities', facilities);
} catch (e) {
console.error('Set localstorage fail for facilities.');
//Empty
}
return {
type: SET_FACILITIES,
facilities: JSON.parse(facilities)
......
......@@ -14,6 +14,7 @@ const WeekHours = ({facility}) => {
];
const output = [];
try {
let index = 0;
for (let dayOfWeek = 0; dayOfWeek < 7; dayOfWeek++) {
const todaysHours = facilityUtils.getHoursByDay(facility, dayOfWeek);
......@@ -27,6 +28,9 @@ const WeekHours = ({facility}) => {
index++;
}
}
} catch (e) {
//Empty
}
return (
<div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment