mirror of
https://github.com/formbricks/formbricks.git
synced 2026-03-13 12:39:25 -05:00
refined search for who completed onboarding
This commit is contained in:
@@ -56,13 +56,16 @@ export default function TemplateList({
|
||||
|
||||
const fullCategories =
|
||||
!!profile?.objective && profile.objective !== "other"
|
||||
? [RECOMMENDED_CATEGORY_NAME, ...defaultCategories]
|
||||
? [RECOMMENDED_CATEGORY_NAME, ALL_CATEGORY_NAME, ...defaultCategories]
|
||||
: [ALL_CATEGORY_NAME, ...defaultCategories];
|
||||
|
||||
setCategories(fullCategories);
|
||||
|
||||
const activeFilter =
|
||||
!!profile?.objective && profile.objective !== "other" ? RECOMMENDED_CATEGORY_NAME : ALL_CATEGORY_NAME;
|
||||
const activeFilter = templateSearch
|
||||
? ALL_CATEGORY_NAME
|
||||
: !!profile?.objective && profile.objective !== "other"
|
||||
? RECOMMENDED_CATEGORY_NAME
|
||||
: ALL_CATEGORY_NAME;
|
||||
setSelectedFilter(activeFilter);
|
||||
}, [profile, templateSearch]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user