From 6f75f9920c1201e20069c09607637f6024a54dac Mon Sep 17 00:00:00 2001 From: "HYUNGU, KANG" Date: Tue, 20 Aug 2019 13:30:09 +0900 Subject: [PATCH] fix(getSubscriptions) : return sub properly return subscriptions only received ids --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cd5a06a9b..c90c3f0ef 100644 --- a/index.js +++ b/index.js @@ -96,7 +96,7 @@ export const getSubscriptions = (skus) => Platform.select({ ios: async() => { checkNativeiOSAvailable(); return RNIapIos.getItems(skus) - .then((items) => items.filter((item) => item.productId)); + .then((items) => items.filter((item) => skus.includes(item.productId))); }, android: async() => { checkNativeAndroidAvailable();