pl-fe: types

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-02-03 12:22:14 +01:00
parent d1ee421047
commit 40464279b4

View File

@ -33,7 +33,7 @@ const EventMapModal: React.FC<BaseModalProps & EventMapModalProps> = ({ onClose,
const map = useRef<L.Map>();
useEffect(() => {
const latlng: [number, number] = [location.latitude, location.longitude];
const latlng: [number, number] = [location.latitude!, location.longitude!];
map.current = L.map('event-map').setView(latlng, 15);