Skip to content

Commit

Permalink
Merge pull request #343 from kylemh/patch-1
Browse files Browse the repository at this point in the history
use a default option in select field
  • Loading branch information
toadzky authored Aug 11, 2020
2 parents 0e1c3ed + 83e11ea commit bfa411d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/pages/BusinessRegister.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ const Container = styled.div`
padding: 0;
`;

const initialBusinessType = 'BUSINESS/OTHER';

const BusinessRegister = () => {
const [orgName, setOrgName] = useState('');
const [address, setAddress] = useState(null);
const [type, setType] = useState();
const [type, setType] = useState(initialBusinessType);
const [contactName, setContactName] = useState('');
const [email, setEmail] = useState('');
const [phoneNumber, setPhoneNumber] = useState(null);
Expand Down Expand Up @@ -132,7 +134,7 @@ const BusinessRegister = () => {
setType(e.target.value);
}}
>
<option value="BUSINESS/OTHER">
<option value={initialBusinessType}>
Other
</option>
<option value="BUSINESS/GROCERY">
Expand Down

0 comments on commit bfa411d

Please sign in to comment.