@umituz/react-native-subscription 2.35.20 → 2.35.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.22",
|
|
4
4
|
"description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -86,7 +86,7 @@ async function performUserSwitch(
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
deps.setInitialized(true);
|
|
89
|
-
deps.setCurrentUserId(normalizedUserId);
|
|
89
|
+
deps.setCurrentUserId(normalizedUserId || undefined);
|
|
90
90
|
const offerings = await Purchases.getOfferings();
|
|
91
91
|
|
|
92
92
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
@@ -130,7 +130,7 @@ export async function handleInitialConfiguration(
|
|
|
130
130
|
|
|
131
131
|
await Purchases.configure({ apiKey, appUserID: normalizedUserId || undefined });
|
|
132
132
|
deps.setInitialized(true);
|
|
133
|
-
deps.setCurrentUserId(normalizedUserId);
|
|
133
|
+
deps.setCurrentUserId(normalizedUserId || undefined);
|
|
134
134
|
|
|
135
135
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
136
136
|
console.log('[UserSwitchHandler] ✅ Purchases.configure() successful');
|