mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +08:00
15f60e8ce2
Enhance the effectiveColor logic in ProviderIcon to properly validate the color prop before using it. Now only uses color when it's a valid non-empty string, otherwise falls back to icon metadata defaultColor. This fixes the issue where Gemini icons would turn black when selected in ProviderCard due to null/undefined/empty string color values being passed through.