Skip to content

Commit 72ba303

Browse files
committed
fix last step retrieval
1 parent 68107bc commit 72ba303

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/round/TechCardDraft.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default defineComponent({
7878
const router = useRouter()
7979
8080
const roundData = state.rounds.find(item => item.round == props.navigationState.round)!
81-
const lastTechDraftStep = roundData.techDraftSteps?.find(item => item.step == props.navigationState.draftingStep - 1)
81+
const lastTechDraftStep = props.navigationState.lastDraftStep
8282
const botTechs = ref(cloneDeep(lastTechDraftStep?.botTechs ?? []))
8383
const playerTechs = ref(cloneDeep(lastTechDraftStep?.playerTechs ?? []))
8484
const playerSpecialActions = ref(lastTechDraftStep?.playerSpecialActions ?? 0)

0 commit comments

Comments
 (0)