A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
handle errors when no sku present
ammarahm-ed061cd4254347
diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.jsindex b0ba161d2..c9d39221d 100644--- a/apps/mobile/src/components/Premium/PremiumDialog.js+++ b/apps/mobile/src/components/Premium/PremiumDialog.js@@ -37,13 +37,17 @@ class PremiumDialog extends React.Component {this.actionSheetRef.current?._setModalVisible(false);}async componentDidMount() {- let u = await db.user.get();- let prod = await RNIap.getSubscriptions(itemSkus);- //console.log(prod);- this.setState({- user: u && u.Id ? u : null,- product: prod[0],- });+ try {+ let u = await db.user.get();+ let prod = await RNIap.getSubscriptions(itemSkus);+ this.setState({+ user: u && u.Id ? u : null,+ product: prod[0],+ });+ } catch(e) {+ console.log(e,"SKU ERROR")+ }+}onSuccessfulSubscription = (subscription: RNIap.SubscriptionPurchase) => {@@ -109,6 +113,14 @@ class PremiumDialog extends React.Component {</Text><ScrollView+ nestedScrollEnabled={true}+ onScrollEndDrag={this.actionSheetRef.current?.childScrollHandler}+ onScrollAnimationEnd={+ this.actionSheetRef.current?.childScrollHandler+ }+ onMomentumScrollEnd={+ this.actionSheetRef.current?.childScrollHandler+ }style={{width: '100%',maxHeight: DDS.isTab ? h * 0.35 : h * 0.5,