From 68589b9934637cdaa90b3452d4c16570eb2b0413 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 28 Jun 2021 23:05:34 -0700 Subject: Fix some warnings --- modern/src/reports/ReportLayoutPage.js | 2 +- modern/src/settings/MaintenancePage.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'modern/src') diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js index fafffc7..6bab67c 100644 --- a/modern/src/reports/ReportLayoutPage.js +++ b/modern/src/reports/ReportLayoutPage.js @@ -75,7 +75,7 @@ const ReportLayoutPage = ({ children, filter, }) => { break; } }); - }, []); + }, [location]); return (
diff --git a/modern/src/settings/MaintenancePage.js b/modern/src/settings/MaintenancePage.js index 9263ee3..3b4fde5 100644 --- a/modern/src/settings/MaintenancePage.js +++ b/modern/src/settings/MaintenancePage.js @@ -64,6 +64,8 @@ const MaintenancePage = () => { return speedFromKnots(value, speedUnit); case 'distance': return distanceFromMeters(value, distanceUnit); + default: + return value; } } return value; @@ -78,6 +80,8 @@ const MaintenancePage = () => { return speedToKnots(value, speedUnit); case 'distance': return distanceToMeters(value, distanceUnit); + default: + return value; } } return value; -- cgit v1.2.3