fix some issues with badges

This commit is contained in:
Olivier Gagnon 2021-10-25 11:17:41 -04:00
parent 65ac7ff6e3
commit f915ba61a9
4 changed files with 19 additions and 19 deletions

26
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -135,10 +135,10 @@ export function SidebarRoot(props: IProps): React.ReactElement {
const flashTutorial = ITutorial.currStep === iTutorialSteps.WorldDescription; const flashTutorial = ITutorial.currStep === iTutorialSteps.WorldDescription;
const augmentationCount = props.player.queuedAugmentations.length; const augmentationCount = props.player.queuedAugmentations.length;
const invitationsCount = props.player.factionInvitations.length; //- InvitationsSeen.length; const invitationsCount = props.player.factionInvitations.filter((f) => !InvitationsSeen.includes(f)).length;
const programCount = getAvailableCreatePrograms(props.player).length; //- ProgramsSeen.length; const programCount = getAvailableCreatePrograms(props.player).length - ProgramsSeen.length;
const canCreateProgram = const canCreateProgram =
programCount > 0 || getAvailableCreatePrograms(props.player).length > 0 ||
props.player.augmentations.length > 0 || props.player.augmentations.length > 0 ||
props.player.queuedAugmentations.length > 0 || props.player.queuedAugmentations.length > 0 ||
props.player.sourceFiles.length > 0; props.player.sourceFiles.length > 0;