diff --git a/.nvmdrc b/.nvmdrc index 801a2a0..10900cd 100644 --- a/.nvmdrc +++ b/.nvmdrc @@ -1 +1 @@ -23.8.0 \ No newline at end of file +25.7.0 \ No newline at end of file diff --git a/src/components/sort-college/DataTable.vue b/src/components/sort-college/DataTable.vue index 16e8b8e..4d1873c 100644 --- a/src/components/sort-college/DataTable.vue +++ b/src/components/sort-college/DataTable.vue @@ -81,7 +81,7 @@ ]); const rankDiff = (index: number, item: any) => { - return index === props.data.length - 1 ? item["rankLine"] : item["rankLine"] - props.data[index + 1]["rankLine"]; + return index === props.data.length - 1 ? item["rankLine"] !== '--' ? item["rankLine"] - props.data[index + 1]["rankLine"] : '--' : '--'; }; const recompileData = computed(() => { @@ -93,7 +93,7 @@ ? '--' : item['rankLine'] - props.lowscoreRank : rankDiff(index, item) - item['lineDiff'] = item['score'] - props.score + item['lineDiff'] = item['score'] !== '--' ? item['score'] - props.score : '--' return item }) return _data;