port less than 1 cent to spend column

This commit is contained in:
DrQuacks
2025-10-02 16:55:36 -07:00
parent 8760276918
commit d303bf6743
@@ -162,7 +162,10 @@ const TopKeyView: React.FC<TopKeyViewProps> = ({ topKeys, accessToken, userID, u
const spendColumn = {
header: "Spend (USD)",
accessorKey: "spend",
cell: (info: any) => `$${formatNumberWithCommas(info.getValue(), 2)}`,
cell: (info: any) => {
const value = info.getValue();
return value > 0 && value < 0.01 ? '<$0.01' : `$${formatNumberWithCommas(value, 2)}`;
},
}
const columns = showTags