Skip to content

Commit

Permalink
fix(store): fix prop validation openNow
Browse files Browse the repository at this point in the history
  • Loading branch information
raulghm committed May 24, 2019
1 parent 1a24386 commit 73e38fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/StoreItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</div>
</div>
<div
v-if="openNow !== null"
class="StoreItem-header-status"
:class="{'StoreItem-header-status--isActive': openNow}"
>
Expand Down Expand Up @@ -55,7 +56,7 @@ export default {
required: true
},
openNow: {
type: Boolean,
validator: prop => typeof prop === 'boolean' || prop === null,
required: true
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/components/StoreItemFull.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="StoreItemFull">
<div
v-if="openNow !== null"
class="StoreItemFull-status"
:class="{'StoreItemFull-status--isActive': openNow}"
>
Expand Down Expand Up @@ -41,7 +42,7 @@ export default {
required: true
},
openNow: {
type: Boolean,
validator: prop => typeof prop === 'boolean' || prop === null,
required: true
}
},
Expand Down

0 comments on commit 73e38fe

Please sign in to comment.