Skip to content

Commit

Permalink
[Fix] Show develop cost in expedition market
Browse files Browse the repository at this point in the history
It showed up when viewing cards in an expansion under settings, but the typing hack meant it didn't get transferred to the model in an expedition.
  • Loading branch information
Torgen authored and on3iro committed Nov 26, 2024
1 parent 1663b9e commit 067d066
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/molecules/MarketTile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type MaybeMarketTile =
name?: string
expansion?: string
cost?: number
developCost?: number
keywords?: string[]
effect?: string
canBeLocked?: boolean
Expand All @@ -38,6 +39,7 @@ type MaybeOutputMarketTile =
name: string
expansion: string
cost: number
developCost?: number
keywords: string[]
effect: string
canBeLocked: boolean
Expand All @@ -49,7 +51,7 @@ const getCard = (marketTile: MaybeMarketTile): MaybeOutputMarketTile => {
return undefined
}

const { id, type, name, expansion, cost, keywords, effect, canBeLocked } =
const { id, type, name, expansion, cost, developCost = undefined, keywords, effect, canBeLocked } =
marketTile

return id &&
Expand All @@ -67,6 +69,7 @@ const getCard = (marketTile: MaybeMarketTile): MaybeOutputMarketTile => {
name,
expansion,
cost,
developCost,
keywords,
effect,
canBeLocked,
Expand Down Expand Up @@ -94,6 +97,7 @@ type Props = ReturnType<typeof mapStateToProps> &
effect?: string
keywords?: string[]
cost?: number
developCost?: number
operation?: types.Operation
threshold?: number
values?: Array<number>
Expand Down
1 change: 1 addition & 0 deletions src/components/molecules/SupplyModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type CardProperties = {
name: string
expansion: string
cost: number
developCost?: number,
keywords: string[]
effect: string
selected: boolean
Expand Down

0 comments on commit 067d066

Please sign in to comment.