Skip to content

Commit

Permalink
fix: Clearing the currency format has no effect on the chart (#25238)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Sep 11, 2023
1 parent 0668d12 commit 6f4e631
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const CurrencyControl = ({
onChange={(symbolPosition: string) => {
onChange({ ...currency, symbolPosition });
}}
onClear={() => onChange({ ...currency, symbolPosition: undefined })}
value={currency?.symbolPosition}
allowClear
{...symbolSelectOverrideProps}
Expand All @@ -118,6 +119,7 @@ export const CurrencyControl = ({
onChange={(symbol: string) => {
onChange({ ...currency, symbol });
}}
onClear={() => onChange({ ...currency, symbol: undefined })}
value={currency?.symbol}
allowClear
allowNewOptions
Expand Down

0 comments on commit 6f4e631

Please sign in to comment.