Skip to content

Commit dda2d9e

Browse files
committed
fix player draft display
1 parent 952141c commit dda2d9e

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

src/views/PhaseBProsperity.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { defineComponent } from 'vue'
2323
import { useI18n } from 'vue-i18n'
2424
import FooterButtons from '@/components/structure/FooterButtons.vue'
2525
import { useRoute } from 'vue-router'
26-
import { Round, useStateStore } from '@/store/state'
26+
import { useStateStore } from '@/store/state'
2727
import SideBar from '@/components/round/SideBar.vue'
2828
import NavigationState from '@/util/NavigationState'
2929
import DebugInfo from '@/components/round/DebugInfo.vue'
@@ -52,11 +52,8 @@ export default defineComponent({
5252
backButtonRouteTo() : string {
5353
return `/round/${this.round}/drafting/${(this.navigationState.lastDraftStep?.step ?? 0)+1}`
5454
},
55-
roundData() : Round|undefined {
56-
return this.state.rounds.find(item => item.round == this.navigationState.round)
57-
},
5855
playerTechs() : Tech[] {
59-
return this.roundData?.playerTechs ?? []
56+
return this.navigationState.lastDraftStep?.playerTechs ?? []
6057
}
6158
},
6259
methods: {

src/views/PhaseCIncome.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { defineComponent } from 'vue'
2323
import { useI18n } from 'vue-i18n'
2424
import FooterButtons from '@/components/structure/FooterButtons.vue'
2525
import { useRoute } from 'vue-router'
26-
import { Round, useStateStore } from '@/store/state'
26+
import { useStateStore } from '@/store/state'
2727
import SideBar from '@/components/round/SideBar.vue'
2828
import NavigationState from '@/util/NavigationState'
2929
import Tech from '@/services/enum/Tech'
@@ -52,11 +52,8 @@ export default defineComponent({
5252
backButtonRouteTo() : string {
5353
return `/round/${this.round}/prosperity`
5454
},
55-
roundData() : Round|undefined {
56-
return this.state.rounds.find(item => item.round == this.navigationState.round)
57-
},
5855
playerTechs() : Tech[] {
59-
return this.roundData?.playerTechs ?? []
56+
return this.navigationState.lastDraftStep?.playerTechs ?? []
6057
}
6158
},
6259
methods: {

0 commit comments

Comments
 (0)