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