use is_active property for determine user subscription status

This commit is contained in:
sabaimran
2025-01-29 14:10:59 -08:00
parent 67b2e9c194
commit d640299edc

View File

@@ -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(