From d640299edccf92b7a588036a870df5b4b8ff971f Mon Sep 17 00:00:00 2001 From: sabaimran Date: Wed, 29 Jan 2025 14:10:59 -0800 Subject: [PATCH] use `is_active` property for determine user subscription status --- src/interface/web/app/agents/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/web/app/agents/page.tsx b/src/interface/web/app/agents/page.tsx index 8ea08041..1eeeec9d 100644 --- a/src/interface/web/app/agents/page.tsx +++ b/src/interface/web/app/agents/page.tsx @@ -281,7 +281,7 @@ export default function Agents() { const modelOptions: ModelOptions[] = userConfig?.chat_model_options || []; const selectedChatModelOption: number = userConfig?.selected_chat_model_config || 0; - const isSubscribed: boolean = isUserSubscribed(userConfig); + const isSubscribed: boolean = userConfig?.is_active || false; // The default model option should map to the item in the modelOptions array that has the same id as the selectedChatModelOption const defaultModelOption = modelOptions.find(