Skip to content

Commit a7d1822

Browse files
committed
fix: csv-upload-score-precision
1 parent e096d38 commit a7d1822

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils/csv.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ export const parseMarketCSV = (csvText: string): Record<string, number> => {
6363
throw new Error(`Row ${i + 1}: Score cannot be negative`);
6464
}
6565

66-
const maxScore = formatWithPrecision(market.maxValue, market.precision);
66+
const maxScore = formatWithPrecision(
67+
market.maxValue * market.precision,
68+
market.precision,
69+
);
6770
if (score > +maxScore) {
6871
throw new Error(
6972
`Row ${

0 commit comments

Comments
 (0)