Skip to content

Commit d3f5770

Browse files
fix: undefined error
1 parent d3221d8 commit d3f5770

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sidebarApps/extensions/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ function ListItem({ icon, name, id, version, downloads, installed, source }) {
794794
return;
795795
}
796796

797-
if (isPaid) {
797+
if (isPaid && config.IAP_AVAILABLE) {
798798
[product] = await helpers.promisify(iap.getProducts, [
799799
remotePlugin.sku,
800800
]);
@@ -803,7 +803,7 @@ function ListItem({ icon, name, id, version, downloads, installed, source }) {
803803
purchaseToken = purchase?.purchaseToken;
804804
}
805805
}
806-
if (isPaid && !purchaseToken) {
806+
if (isPaid && config.IAP_AVAILABLE && !purchaseToken) {
807807
if (!product) throw new Error("Product not found");
808808
const apiStatus = await helpers.checkAPIStatus();
809809

0 commit comments

Comments
 (0)