This commit is contained in:
@@ -5,8 +5,6 @@ export const useCheckout = createSharedComposable(() => {
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
||||
const isPickupPointSelected = ref(false)
|
||||
|
||||
const checkoutPickupPoint = useStorage<PickupPoint | undefined>(
|
||||
'checkout-pickupPoint',
|
||||
undefined,
|
||||
@@ -23,6 +21,8 @@ export const useCheckout = createSharedComposable(() => {
|
||||
checkoutPickupPoint.value = point
|
||||
}
|
||||
|
||||
const isPickupPointSelected = computed(() => !!checkoutPickupPoint.value)
|
||||
|
||||
const checkoutContacts = useStorage('checkout-contacts', { name: '', surname: '', phone: '', email: '' })
|
||||
|
||||
const setCheckoutContacts = (data: { name: string, surname: string, phone: string, email: string }) => {
|
||||
@@ -49,7 +49,6 @@ export const useCheckout = createSharedComposable(() => {
|
||||
|
||||
function previewStep() {
|
||||
if (isPickupPointSelected.value) {
|
||||
isPickupPointSelected.value = false
|
||||
setCheckoutPickupPoint(undefined)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user