Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit d77147e

Browse files
committed
read Geopoint from correct library
1 parent 78676d8 commit d77147e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firebase.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ firebase.toJsObject = objCObj => {
645645
node[key] = firebase.firestore._getDocumentReference(val, path.substring(0, lastSlashIndex), path.substring(lastSlashIndex + 1));
646646
break;
647647
case 'FIRGeoPoint':
648-
node[key] = firestore.GeoPoint(
648+
node[key] = firebase.firestore.GeoPoint(
649649
(<FIRGeoPoint>val).latitude,
650650
(<FIRGeoPoint>val).longitude
651651
);
@@ -1158,7 +1158,7 @@ function toLoginResult(user, additionalUserInfo?: FIRAdditionalUserInfo): User {
11581158
username: additionalUserInfo.username,
11591159
isNewUser: additionalUserInfo.newUser,
11601160
profile: firebase.toJsObject(additionalUserInfo.profile)
1161-
}
1161+
};
11621162
}
11631163

11641164
return loginResult;

0 commit comments

Comments
 (0)