Merge remote-tracking branch 'upstream/master' into i18n

This commit is contained in:
Minseo Lee 2024-08-28 16:46:56 +09:00
commit 170d1dff7a
19 changed files with 305 additions and 321 deletions

View file

@ -58,13 +58,13 @@ export function RetentionTable({ days = DAYS }) {
if (totalDays - rowIndex < day) {
return null;
}
const percentage = records[day]?.percentage;
const percentage = records.filter(a => a.day === day)[0]?.percentage;
return (
<div
key={day}
className={classNames(styles.cell, { [styles.empty]: !percentage })}
>
{percentage ? `${percentage.toFixed(2)}%` : ''}
{percentage ? `${Number(percentage).toFixed(2)}%` : ''}
</div>
);
})}