Skip to content

Commit bca2a49

Browse files
authored
fix(profile): prevent cannot read property '_getservice' of undefined error - @Zubnix
2 parents 8381bfc + d78139c commit bca2a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ export function createAuthIsReady(store, config) {
232232
* @returns {Promise} Resolves with results of profile get
233233
*/
234234
export function updateProfileOnRTDB(firebase, profileUpdate) {
235-
const { database, _: { config, authUid } } = firebase
236-
const profileRef = database().ref(`${config.userProfile}/${authUid}`)
235+
const { _: { config, authUid } } = firebase
236+
const profileRef = firebase.database().ref(`${config.userProfile}/${authUid}`)
237237
return profileRef.update(profileUpdate).then(() => profileRef.once('value'))
238238
}
239239

0 commit comments

Comments
 (0)