Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(pricing): only disable the button that is actively checking out

Gabriel Stein6b2cbae5a0f8
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index 50ae005c5..11fad177d 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -1658,7 +1658,7 @@ export default function SettingsPage({
onClick={() =>
handleCheckout(billingState.pro ? "annual" : "monthly", "pro")
}
- disabled={!!checkoutTier}
+ disabled={checkoutTier === "pro"}
size="sm"
className="mt-2 w-full h-6 text-[10px]"
>
@@ -1752,7 +1752,7 @@ export default function SettingsPage({
onClick={() =>
handleCheckout(billingState.business ? "annual" : "monthly", "business")
}
- disabled={!!checkoutTier}
+ disabled={checkoutTier === "business"}
size="sm"
className="mt-2 w-full h-6 text-[10px]"
>
@@ -2097,7 +2097,7 @@ export default function SettingsPage({
}
size="sm"
className="w-full"
- disabled={!!checkoutTier}
+ disabled={checkoutTier === "pro"}
>
{checkoutTier === "pro"
? t("settingsPage.account.checkout.opening")