Skip to content

Commit

Permalink
refactor(CurrencySelect): type narrowing semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Dec 15, 2024
1 parent 06b1769 commit cda208a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CurrencySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function CurrencySelect<const T extends string>({
name={name}
className="text-start"
>
{typeof value === "string" && (
{!Array.isArray(value) && (
<CurrencySelectItemContent currency={value} compact />
)}
<SelectArrow />
Expand Down

0 comments on commit cda208a

Please sign in to comment.