[BugFix] Persist Job Restrictions When New User Late Joins (#26498)

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

* more succinct representation of condition
This commit is contained in:
Jake Huxell
2024-03-28 22:30:23 -04:00
committed by GitHub
parent 8537e279e1
commit cfc0ecbf80

View File

@@ -309,7 +309,7 @@ namespace Content.Client.LateJoin
if (matchingJobButton.Amount != updatedJobValue) if (matchingJobButton.Amount != updatedJobValue)
{ {
matchingJobButton.RefreshLabel(updatedJobValue); matchingJobButton.RefreshLabel(updatedJobValue);
matchingJobButton.Disabled = matchingJobButton.Amount == 0; matchingJobButton.Disabled |= matchingJobButton.Amount == 0;
} }
} }
} }