cleanup
This commit is contained in:
parent
0ef5305fda
commit
1bd64440cb
@ -67,9 +67,7 @@ export const columns: ColumnDef<chunithm>[] = [
|
|||||||
const highScore = a.original.score ?? 0;
|
const highScore = a.original.score ?? 0;
|
||||||
const lowScore = b.original.score ?? 0;
|
const lowScore = b.original.score ?? 0;
|
||||||
|
|
||||||
if (highScore < lowScore) return 1;
|
return lowScore - highScore;
|
||||||
if (highScore > lowScore) return -1;
|
|
||||||
return 0;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -107,10 +105,10 @@ export const columns: ColumnDef<chunithm>[] = [
|
|||||||
header: "Difficulty",
|
header: "Difficulty",
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => (
|
||||||
<div className="font-medium">
|
<div className="font-medium">
|
||||||
{row.original.level}
|
{row.original.level}
|
||||||
<br />
|
<br />
|
||||||
{getDifficultyText(row.original.chartId)}
|
{getDifficultyText(row.original.chartId)}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user