From 62ce330d4286438cf34da8f81fbafd23051ba926 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 15 Nov 2024 17:24:29 -0600 Subject: [PATCH] Clean up comments, single quote component name --- src/components/PlayerBattingSummaryTable.vue | 2 +- src/components/PlayerCareerPitchingTable.vue | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/components/PlayerBattingSummaryTable.vue b/src/components/PlayerBattingSummaryTable.vue index 3d8f027..112f59c 100644 --- a/src/components/PlayerBattingSummaryTable.vue +++ b/src/components/PlayerBattingSummaryTable.vue @@ -74,7 +74,7 @@ import { aggregateBattingStats, type BattingStat } from '@/services/battingStats import type { PropType } from 'vue' export default { - name: "PlayerBattingSummaryTable", + name: 'PlayerBattingSummaryTable', props: { currentSeasonBatting: { type: Object as PropType, required: false }, currentPostSeasonBatting: { type: Object as PropType, required: false }, diff --git a/src/components/PlayerCareerPitchingTable.vue b/src/components/PlayerCareerPitchingTable.vue index 9361373..b7238b6 100644 --- a/src/components/PlayerCareerPitchingTable.vue +++ b/src/components/PlayerCareerPitchingTable.vue @@ -198,22 +198,9 @@ export default { } return seasonStats.sort((s1, s2) => s2[this.sortKey] < s1[this.sortKey] ? this.sortOrder : -1 * this.sortOrder) - - // return seasonStats.sort((s1, s2) => { - // return s1.seasonNumber - s2.seasonNumber === 0 - // ? s1.isRegularSeason - // ? -1 - // : 1 - // : s1.seasonNumber - s2.seasonNumber - // }) }, }, methods: { - // setKey(stat: keyof PitchingStatWithSeason): void { - // this.setKey(stat) - - // this.pitchingStats.sort((s1, s2) => s2[stat] < s1[stat] ? this.sortOrder : -1 * this.sortOrder) - // }, setKey(stat: keyof PitchingStatWithSeason): void { if (this.sortKey === stat) { // if key currently selected, flip sort order