Skip to content

Commit 233927f

Browse files
authored
Merge pull request #985 from w3bdesign/dev
Update cart on mounted
2 parents 4f78864 + 047e4bc commit 233927f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/Layout/LayoutCart.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const updateCartDisplay = () => {
6262
remoteError.value = error;
6363
};
6464
65+
onMounted(() => updateCartDisplay());
66+
6567
setInterval(() => {
6668
if (process.client && !pending.value && getCookie("woo-session")) {
6769
execute();

0 commit comments

Comments
 (0)