карты пвз
All checks were successful
Deploy / build (push) Successful in 53s

This commit is contained in:
alsaze
2025-11-10 18:51:31 +03:00
parent 2591d145f8
commit 436f537166
2 changed files with 6 additions and 12 deletions

View File

@@ -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
}