File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { defineComponent } from 'vue'
2323import { useI18n } from ' vue-i18n'
2424import FooterButtons from ' @/components/structure/FooterButtons.vue'
2525import { useRoute } from ' vue-router'
26- import { Round , useStateStore } from ' @/store/state'
26+ import { useStateStore } from ' @/store/state'
2727import SideBar from ' @/components/round/SideBar.vue'
2828import NavigationState from ' @/util/NavigationState'
2929import 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: {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { defineComponent } from 'vue'
2323import { useI18n } from ' vue-i18n'
2424import FooterButtons from ' @/components/structure/FooterButtons.vue'
2525import { useRoute } from ' vue-router'
26- import { Round , useStateStore } from ' @/store/state'
26+ import { useStateStore } from ' @/store/state'
2727import SideBar from ' @/components/round/SideBar.vue'
2828import NavigationState from ' @/util/NavigationState'
2929import 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: {
You can’t perform that action at this time.
0 commit comments