haagahelia / mobilecourse

Mobile Programming course material (docusaurus)
https://haagahelia.github.io/mobilecourse/
2 stars 1 forks source link

Typo fix in firebase page #3

Closed Ullebror closed 2 hours ago

Ullebror commented 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');
  }
}
juhahinkula commented 2 hours ago

Thanks. Will be fixed