make timezone field required

hopefully this should stop the errors people have been getting!
This commit is contained in:
Spectralitree 2021-03-11 10:09:13 +01:00
parent dd3a381a7c
commit fd7e2c2bda

View File

@ -147,7 +147,7 @@ const submitPrivacy = data => {
</BS.Col> </BS.Col>
<BS.Col className="mb-lg-2" xs={12} lg={3}> <BS.Col className="mb-lg-2" xs={12} lg={3}>
<BS.Form.Label>Timezone:</BS.Form.Label> <BS.Form.Label>Timezone:</BS.Form.Label>
<BS.Form.Control name="tz" ref={registerEdit} defaultValue={timezone}/> <BS.Form.Control name="tz" ref={registerEdit} defaultValue={timezone} required/>
{ invalidTimezone ? <BS.Form.Text>Please enter a valid <a href='https://xske.github.io/tz/' rel="noreferrer" target="_blank">timezone</a></BS.Form.Text> : "" } { invalidTimezone ? <BS.Form.Text>Please enter a valid <a href='https://xske.github.io/tz/' rel="noreferrer" target="_blank">timezone</a></BS.Form.Text> : "" }
</BS.Col> </BS.Col>
<BS.Col className="mb-lg-2" xs={12} lg={3}> <BS.Col className="mb-lg-2" xs={12} lg={3}>