Merge pull request #1571 from danielyxie/dev

fix some issues with badges
This commit is contained in:
hydroflame 2021-10-25 11:17:52 -04:00 committed by GitHub
commit 00dd4cbc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;