Skip to content

Commit

Permalink
Add message to refresh page if we have an error
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Feb 13, 2021
1 parent 3056804 commit 2e94aff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/Header/Cart.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template>
<div>
<div v-if="!remoteError">
<div v-if="remoteError">
<span class="text-xl text-red-500"
>Error fetching cart. Please refresh the page.</span
>
</div>
<div v-else>
<NuxtLink to="/cart">
<transition name="cart">
<span
Expand Down

0 comments on commit 2e94aff

Please sign in to comment.