feat: UI changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user