Skip to content

Commit

Permalink
[BugFix] Persist Job Restrictions When New User Late Joins (space-wiz…
Browse files Browse the repository at this point in the history
…ards#26498)

* make sure to keep late join button disabled if requirements not met

* more succinct representation of condition
  • Loading branch information
Huxellberger authored Mar 29, 2024
1 parent 8537e27 commit cfc0ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Client/LateJoin/LateJoinGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private void JobsAvailableUpdated(IReadOnlyDictionary<NetEntity, Dictionary<stri
if (matchingJobButton.Amount != updatedJobValue)
{
matchingJobButton.RefreshLabel(updatedJobValue);
matchingJobButton.Disabled = matchingJobButton.Amount == 0;
matchingJobButton.Disabled |= matchingJobButton.Amount == 0;
}
}
}
Expand Down

0 comments on commit cfc0ecb

Please sign in to comment.