Merge pull request #3682 from nickofolas/fix/unavailable-augs-color

AUGMENTATIONS: Use disabled text color for non-buyable augs
This commit is contained in:
hydroflame 2022-05-20 23:53:34 -04:00 committed by GitHub
commit b10f11b390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,7 +219,10 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden",
color: props.owned ? Settings.theme.disabled : Settings.theme.primary,
color:
props.owned || !props.parent.canPurchase(props.parent.player, aug)
? Settings.theme.disabled
: Settings.theme.primary,
}}
>
{aug.name}