Skip to content

Commit

Permalink
Fix controlled input console error
Browse files Browse the repository at this point in the history
A controlled input cannot contain undefined or null values at start
  • Loading branch information
mgonzalezg9 committed Apr 22, 2023
1 parent 3e74c43 commit ae0445b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/LocationRequest/SearchSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type SearchSection = {

const SearchSection = ({ onSearch, errorMsg }: SearchSection) => {
const [coordinates, setCoordinates] = useState<Location.LocationObject>();
const [location, setLocation] = useState<string>();
const [location, setLocation] = useState<string>('');
const [locationDenied, setLocationDenied] = useState<boolean>(false);

const getWeatherDetails = () => {
Expand Down

0 comments on commit ae0445b

Please sign in to comment.