From a4e6e35da1f86163fbdb0ba90fd28c8ccdef4ed6 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Mon, 9 Feb 2026 12:29:00 +0300 Subject: [PATCH] fix: check apps before subscription on connection page Move the empty apps check before the subscription check so that an empty or unconfigured appConfig shows "not configured" instead of the misleading "no subscription" message. --- src/pages/Connection.tsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/pages/Connection.tsx b/src/pages/Connection.tsx index d862b16..e9fe6c9 100644 --- a/src/pages/Connection.tsx +++ b/src/pages/Connection.tsx @@ -108,22 +108,7 @@ export default function Connection() { ); } - // No subscription - if (!appConfig.hasSubscription) { - return ( -
-

- {t('subscription.connection.title')} -

-

{t('subscription.connection.noSubscription')}

- -
- ); - } - - // No apps configured + // No apps configured — check before subscription since empty config also has no subscription if (!hasApps) { return (
@@ -177,6 +162,21 @@ export default function Connection() { ); } + // No subscription + if (!appConfig.hasSubscription) { + return ( +
+

+ {t('subscription.connection.title')} +

+

{t('subscription.connection.noSubscription')}

+ +
+ ); + } + return (