Skip to content

Commit

Permalink
fixed eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
stevem-zhou committed Sep 4, 2023
1 parent 2b86c28 commit ee9563c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
Alert,
AlertIcon,
AlertTitle,
AlertDescription,
} from "@chakra-ui/react";
import { SettingsIcon, ChevronDownIcon, StarIcon } from "@chakra-ui/icons";
import logo from "../../assets/images/small_logo.png";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default function Map({
}

const NewItemMarker = () => {
const map = useMapEvents({
useMapEvents({
click(event) {
const { lat, lng } = event.latlng;
setPosition([lat, lng]);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ResultCard/ResultCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export default function ResultCard({ props, setData, onResultsBarClose }) {
</Flex>
</CardFooter>
</Card>
{isOpen || id && (
{(isOpen || id) && (
<InfoModal
props={props}
onOpen={onOpen}
onClose={onClose}
isOpen={id == props.id ? true: isOpen}
isOpen={id === props.id.toString() ? true: isOpen}
setData={setData}
/>
)}
Expand Down

0 comments on commit ee9563c

Please sign in to comment.