From 34d0165c892266e96d9b17e207106b6a9513b56d Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Wed, 14 May 2025 17:23:24 -0500 Subject: [PATCH] reset prod prices --- src/components/bitcoinConnect/SubscriptionPaymentButton.js | 2 +- src/components/profile/subscription/UserSubscription.js | 5 ----- src/pages/api/users/subscription/cron.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/bitcoinConnect/SubscriptionPaymentButton.js b/src/components/bitcoinConnect/SubscriptionPaymentButton.js index 07ce879..505004c 100644 --- a/src/components/bitcoinConnect/SubscriptionPaymentButton.js +++ b/src/components/bitcoinConnect/SubscriptionPaymentButton.js @@ -38,7 +38,7 @@ const SubscriptionPaymentButtons = ({ // Calculate the amount based on the subscription type const getAmount = () => { - return subscriptionType === 'yearly' ? 500 : 50; + return subscriptionType === 'yearly' ? 500000 : 50000; }; const amount = getAmount(); diff --git a/src/components/profile/subscription/UserSubscription.js b/src/components/profile/subscription/UserSubscription.js index b0d734e..a49975f 100644 --- a/src/components/profile/subscription/UserSubscription.js +++ b/src/components/profile/subscription/UserSubscription.js @@ -117,11 +117,6 @@ const UserSubscription = () => { } }; - // Calculate the subscription amount based on type - const getAmount = () => { - return subscriptionType === 'yearly' ? 500 : 50; - }; - return (
{windowWidth < 768 &&

Subscription Management

} diff --git a/src/pages/api/users/subscription/cron.js b/src/pages/api/users/subscription/cron.js index ebf9d9b..7bb8e87 100644 --- a/src/pages/api/users/subscription/cron.js +++ b/src/pages/api/users/subscription/cron.js @@ -11,7 +11,7 @@ const lnAddress = process.env.LIGHTNING_ADDRESS; // Calculate subscription amount based on type const getAmount = (subscriptionType) => { // 500K for yearly (saves ~17% compared to monthly), 50K for monthly - return subscriptionType === 'yearly' ? 500 : 50; + return subscriptionType === 'yearly' ? 500000 : 50000; }; export default async function handler(req, res) {