Firebase – function only adds one element to Favorites Array
I just realized my markFavorite function will only add one element to the favorites array, as soon as I try adding another element it will log: "FirebaseError: Function updateDoc() called with invalid data. Unsupported field value: undefined (found in document…