feat: UI changes

This commit is contained in:
2025-08-16 21:53:55 +03:00
parent d7df5a4b5c
commit d522cbef83
13 changed files with 173 additions and 39 deletions

View File

@@ -15,6 +15,8 @@ export const useCheckoutStore = defineStore('checkout', {
tgData: null,
},
order: null,
isLoading: false,
validationErrors: {},
}),
@@ -50,7 +52,10 @@ export const useCheckoutStore = defineStore('checkout', {
}
this.customer.tgData = data;
await storeOrder(this.customer);
const response = await storeOrder(this.customer);
this.order = response.data;
await window.Telegram.WebApp.HapticFeedback.notificationOccurred('success');
await useCartStore().getProducts();
} catch (error) {