We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cannot read property '_getservice' of undefined
2 parents 8381bfc + d78139c commit bca2a49Copy full SHA for bca2a49
src/utils/auth.js
@@ -232,8 +232,8 @@ export function createAuthIsReady(store, config) {
232
* @returns {Promise} Resolves with results of profile get
233
*/
234
export function updateProfileOnRTDB(firebase, profileUpdate) {
235
- const { database, _: { config, authUid } } = firebase
236
- const profileRef = database().ref(`${config.userProfile}/${authUid}`)
+ const { _: { config, authUid } } = firebase
+ const profileRef = firebase.database().ref(`${config.userProfile}/${authUid}`)
237
return profileRef.update(profileUpdate).then(() => profileRef.once('value'))
238
}
239
0 commit comments