Skip to content

Commit e6642ec

Browse files
authored
fix(firestore, ios): use correct key to cache instance (#8404)
1 parent d9b7175 commit e6642ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/ios/RNFBFirestore/RNFBFirestoreCommon.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ + (FIRFirestore *)getFirestoreForApp:(FIRApp *)app databaseId:(NSString *)databa
4747
appName:[RNFBSharedUtils getAppJavaScriptName:app.name]
4848
databaseId:databaseId];
4949

50-
instanceCache[[app name]] = instance;
50+
instanceCache[firestoreKey] = instance;
5151

5252
return instance;
5353
}

0 commit comments

Comments
 (0)