Skip to content

Commit

Permalink
fix: managing stock zero for boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianRid committed Jun 25, 2021
1 parent a4b4924 commit 96def7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tumeplay-app/src/screens/components/tunnel/ProductCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ export default function ProductCard(props) {
})
}

console.log(productBox)

return (
<>
{
!productBox.available ?
!productBox.available || productBox.stock === 0 ?
<View style={cardStyle.descriptionCard}>
<Text style={cardStyle.descriptionTitle}>Box indisponible</Text>
<CustomTouchableOpacity style={cardStyle.descriptionButton} onPress={() => {redirectContact()}}>
Expand Down

0 comments on commit 96def7b

Please sign in to comment.