Skip to content

Commit

Permalink
fix: update default location
Browse files Browse the repository at this point in the history
  • Loading branch information
guan404ming committed May 25, 2024
1 parent 4510c64 commit 95a7953
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/my/_components/add-post-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ import LocationPicker from "./location-picker";

export default function AddPostDialog() {
const [open, setOpen] = useState<boolean>(false);
const [location, setLocation] = useState<{ lat: number; lng: number } | null>(
null,
);
const [location, setLocation] = useState<{ lat: number; lng: number }>({
lat: 25.0129,
lng: 121.5371,
});

const formSchema = z.object({
title: z.string().min(1),
Expand Down

0 comments on commit 95a7953

Please sign in to comment.