nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.04k stars 63 forks source link

fix mergeObjects order #172

Closed thefalked closed 2 months ago

thefalked commented 2 months ago

Description

When using Arrays on a extended variant it was returning [object object].

By changing the order of the function mergeObjects to first check if is an array it work as expected (joining the arrays).


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following