Skip to content

Commit 982cbb4

Browse files
committed
Fix imports
1 parent 7083753 commit 982cbb4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/Products/ProductsSingleProduct.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ const addProductToCart = async (product) => {
122122
try {
123123
await cart.addToCart(product);
124124
toast.value.show();
125-
} catch (error) {}
125+
} catch (error) {
126+
console.error("Error adding product to cart");
127+
}
126128
};
127129
</script>

components/common/CommonToast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</template>
1212

1313
<script setup>
14-
import { ref, watch } from "vue";
14+
import { ref } from "vue";
1515
1616
const props = defineProps({
1717
message: {

0 commit comments

Comments
 (0)