Skip to content

Commit

Permalink
Update components/CurrencyPicker.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique <[email protected]>
  • Loading branch information
gustavlrsn and hdiniz authored Jan 28, 2025
1 parent ea9cb37 commit b93bd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/CurrencyPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function CurrencyPicker({
value?: string;
} & Omit<React.ComponentProps<typeof ComboSelect>, 'options'>) {
const intl = useIntl();
const currencyOptions = generateCurrencyOptions(intl, availableCurrencies);
const currencyOptions = React.useMemo(() =>generateCurrencyOptions(intl, availableCurrencies), [intl, availableCurrencies]);
return (
<ComboSelect
id="currency-picker"
Expand Down

0 comments on commit b93bd9c

Please sign in to comment.