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); + } };