From 7b73941531248d39da31308a4b61039d2f2ea8c8 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Tue, 28 Nov 2023 23:11:29 -0600 Subject: [PATCH] fix web --- .../components/shared-components/change-location.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/lib/components/shared-components/change-location.svelte b/web/src/lib/components/shared-components/change-location.svelte index cfabe78657..16b6c4f039 100644 --- a/web/src/lib/components/shared-components/change-location.svelte +++ b/web/src/lib/components/shared-components/change-location.svelte @@ -29,8 +29,11 @@ }; const handleConfirm = () => { - if (!point) return; - dispatch('confirm', point); + if (!point) { + dispatch('cancel'); + } else { + dispatch('confirm', point); + } };