Skip to content

Commit

Permalink
Fix renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brundonsmith committed Apr 20, 2024
1 parent 9e563cb commit c950a78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions front-end/src/components/tickets/PurchaseTicketsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default observer(() => {

const purchaseForm = useStable(() => {
const isAtCampChampions = festivalsAtCampChampions != null && festivalsAtCampChampions.some(f => f.festival_id === WindowObservables.hashState?.ticketPurchaseModalState)
// @ts-expect-error ksdjfghlsdfg
const existingTickets = Store.purchasedTickets[WindowObservables.hashState?.ticketPurchaseModalState]
const existingTickets = Store.purchasedTicketsByFestival[WindowObservables.hashState?.ticketPurchaseModalState as string]
const hasTicketsForThisFestival = (existingTickets ?? []).length > 0
return makeAutoObservable(new PurchaseForm(!hasTicketsForThisFestival, isAtCampChampions && !hasTicketsForThisFestival))
})
Expand Down

0 comments on commit c950a78

Please sign in to comment.