I want to do the following.
If the fields are empty store the fields. If it is not empty update them. All this from one button
How my app works:
User login - show list of categories(each category is a collection in the database) - user fill in data and store the data - user comeback and want to update the data by pressing on the same button as the store button.