Closed Ullebror closed 2 hours ago
Inside tha handleSave if statement:
const handleSave = () => { if (product.amount && product.name) { // should be product.amount && product.title push(ref(database, 'items/'), product); } else { Alert.alert('Error', 'Type product and amount first'); } }
Thanks. Will be fixed
Inside tha handleSave if statement: