From 22608cff3730a7a3106500e54b0a76cd2669a675 Mon Sep 17 00:00:00 2001 From: wildscotsmen Date: Thu, 18 Oct 2018 16:10:31 -0400 Subject: [PATCH] Changed default value for time to 'Unknown'. --- src/components/ReportForm.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ReportForm.js b/src/components/ReportForm.js index c0d4a0a..75e5637 100644 --- a/src/components/ReportForm.js +++ b/src/components/ReportForm.js @@ -145,6 +145,10 @@ const monthTypes = [ * what is stored in the database. */ const timeTypes = [ + { + value: 'unknown', + label: 'Unknown', + }, { value: 'morning', label: 'Morning', @@ -161,10 +165,6 @@ const timeTypes = [ value: 'night', label: 'Night', }, - { - value: 'unknown', - label: 'Unknown', - }, ]; /** @@ -215,7 +215,7 @@ class ReportForm extends React.Component { state = { month: '01', year: getYear(new Date()), - time: 'morning', + time: 'unknown', type: 'visual', confidence: '1', desc: '', @@ -269,7 +269,7 @@ class ReportForm extends React.Component { this.setState({ year: getYear(new Date()), month: '01', - time: 'morning', + time: 'unknown', type: 'visual', confidence: '1', desc: '',