fix hydration errors
This commit is contained in:
@ -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.', {
|
||||
|
Reference in New Issue
Block a user