fix hydration errors

This commit is contained in:
2025-07-03 18:34:02 +02:00
parent 9063846282
commit 3b02ccbe80
5 changed files with 267 additions and 186 deletions

View File

@ -82,7 +82,7 @@ export const useProductStore = defineStore('productStore', () => {
autoClose: 5000,
dangerouslyHTMLString: true,
})
checkoutStore.getUserCart()
await checkoutStore.getUserCart()
}
else {
$toast.error('Failed to add item to cart. Please try again.', {
@ -120,7 +120,7 @@ export const useProductStore = defineStore('productStore', () => {
autoClose: 5000,
dangerouslyHTMLString: true,
})
checkoutStore.getUserCart()
await checkoutStore.getUserCart()
}
else {
$toast.error('Failed to removed item from cart. Please try again.', {
@ -158,7 +158,7 @@ export const useProductStore = defineStore('productStore', () => {
autoClose: 5000,
dangerouslyHTMLString: true,
})
checkoutStore.getUserCart()
await checkoutStore.getUserCart()
}
else {
$toast.error('Failed to removed item from cart. Please try again.', {