Skip to content
Snippets Groups Projects
Unverified Commit 089e02dd authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

Change default for currency style to code if symbol not supported (#17301)

parent bfbd2599
No related branches found
No related tags found
No related merge requests found
......@@ -354,7 +354,12 @@ export const NUMBER_COLUMN_SETTINGS = {
],
};
},
default: "symbol",
getDefault: (column: Column, settings: ColumnSettings) => {
const c = settings["currency"] || "USD";
return getCurrency(c, "symbol") !== getCurrency(c, "code")
? "symbol"
: "code";
},
getHidden: (column: Column, settings: ColumnSettings) =>
settings["number_style"] !== "currency",
readDependencies: ["number_style"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment