Skip to content

Commit

Permalink
Update packages/autocomplete-js/src/utils/mergeClassNames.ts
Browse files Browse the repository at this point in the history
Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>
  • Loading branch information
shortcuts and francoischalifour authored Jan 26, 2021
1 parent b8fb686 commit 9d60afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/autocomplete-js/src/utils/mergeClassNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export function mergeClassNames(
const accValue = acc[key];
const currentValue = current[key];

if (accValue !== currentValue)
if (accValue !== currentValue) {
acc[key] = [accValue, currentValue].filter(Boolean).join(' ');
}
});

return acc;
Expand Down

0 comments on commit 9d60afa

Please sign in to comment.