Skip to content

Commit

Permalink
fix: box sur mesure display
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianRid committed Jun 29, 2021
1 parent 1316779 commit b4d9efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tumeplay-app/src/screens/components/tunnel/ProductCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function ProductCard(props) {
return (
<View style={cardStyle.container}>
{
!productBox.available || productBox.stock === 0 ?
productBox.__typename === 'Box' && (!productBox.available || productBox.stock === 0) ?
<View style={cardStyle.containerDisable}>
<View style={cardStyle.descriptionCard}>
<Text style={cardStyle.descriptionTitle}>Box indisponible</Text>
Expand Down

0 comments on commit b4d9efa

Please sign in to comment.