Fixing suggested Tag color.

This commit is contained in:
Roland 2023-11-21 15:38:47 -07:00
parent c628af4f49
commit 22237dfcbb
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -118,9 +118,8 @@ export function useSearchSuggestions() {
};
const resultRenderer = ({type, title, description}) => {
description = description !== null ? <SHeader as='h5'>{description}</SHeader> : null;
if (type === 'tag') {
return <SingleTag name={title}/>;
return <SingleTag name={description}/>;
}
// No specific renderer, use the generic.