Tweak max SF level code

This commit is contained in:
nickofolas
2022-05-07 16:28:01 -05:00
parent d43ec1d501
commit 5d89f17e4a
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ function CurrentBitNode(): React.ReactElement {
const player = use.Player();
if (player.sourceFiles.length > 0) {
const index = "BitNode" + player.bitNodeN;
const lvl = player.sourceFileLvl(player.bitNodeN) + 1;
const lvl = Math.min(player.sourceFileLvl(player.bitNodeN) + 1, player.bitNodeN === 12 ? Infinity : 3);
return (
<Paper sx={{ mb: 1, p: 1 }}>
<Typography variant="h5">