Merge pull request #3550 from nickofolas/fix/flume-bitverse-level

BITNODE: FIX #3546 BitVerse now shows proper BN level when accessed via flume
This commit is contained in:
hydroflame
2022-04-25 11:23:42 -04:00
committed by GitHub

View File

@@ -163,7 +163,9 @@ export function BitverseRoot(props: IProps): React.ReactElement {
return lvl;
}
const max = n === 12 ? Infinity : 3;
return Math.min(max, lvl + 1);
// If accessed via flume, display the current BN level, else the next
return Math.min(max, lvl + Number(!props.flume));
};
if (Settings.DisableASCIIArt) {