Skip to content

Commit

Permalink
fix: tags chip not being displayed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Oct 23, 2024
1 parent 10d4117 commit 089220b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type ChatsContextValue = {
servedBy: string | undefined;
department: string | undefined;
status: string | undefined;
tags: string[] | undefined;
tags: string | undefined;
};
removeFilter: (filter: keyof ChatsFiltersQuery) => void;
hasAppliedFilters: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useDisplayFilters = (filtersQuery: ChatsFiltersQuery) => {
servedBy: servedBy !== 'all' ? `${t('Served_By')}: ${agentData?.user.name}` : undefined,
department: department !== 'all' ? `${t('Department')}: ${departmentData?.department.name}` : undefined,
status: status !== 'all' ? `${t('Status')}: ${t(statusTextMap[status] as TranslationKey)}` : undefined,
tags: tags.length > 0 ? tags.map((tag) => `${t('Tag')}: ${tag.label}`) : undefined,
tags: tags.length > 0 ? `${t('Tags')}: ${tags.map((tag) => tag.label).join(', ')}` : undefined,
...displayCustomFields,
};
};

0 comments on commit 089220b

Please sign in to comment.