Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix promo code not applied

ammarahm-ed39b3f5ee04b5
diff --git a/apps/mobile/src/components/Premium/PremiumComponent.js b/apps/mobile/src/components/Premium/PremiumComponent.js
index 7e1560d4a..a4fac816c 100644
--- a/apps/mobile/src/components/Premium/PremiumComponent.js
+++ b/apps/mobile/src/components/Premium/PremiumComponent.js
@@ -332,12 +332,14 @@ export const PremiumComponent = ({close, promo, getRef}) => {
positiveText: 'Apply',
positivePress: async value => {
if (!value) return;
+ console.log(value);
try {
let productId = await db.offers.getCode(
value,
Platform.OS
);
if (productId) {
+ getPromo(productId)
ToastEvent.show({
heading: 'Discount applied!',
type: 'success',