BUGFIX: Fix webstorm by using a mutationLock (#2542)

This commit is contained in:
David Walker
2026-03-06 11:11:06 -08:00
committed by GitHub
parent 90f6db6d24
commit b6a29681f4
10 changed files with 131 additions and 44 deletions
+5 -5
View File
@@ -243,7 +243,11 @@ export function NetworkDisplayWrapper(): React.ReactElement {
) : (
""
)}
{DarknetState.allowMutating ? (
{DarknetState.mutationLock ? (
<Typography variant={"h6"} className={classes.gold}>
[WEBSTORM WARNING]
</Typography>
) : (
<Box className={`${classes.inlineFlexBox}`}>
<Typography variant={"h5"} sx={{ fontWeight: "bold" }}>
Dark Net
@@ -265,10 +269,6 @@ export function NetworkDisplayWrapper(): React.ReactElement {
</Tooltip>
)}
</Box>
) : (
<Typography variant={"h6"} className={classes.gold}>
[WEBSTORM WARNING]
</Typography>
)}
<div
+1 -1
View File
@@ -67,7 +67,7 @@ export const PasswordPrompt = ({ server, onClose }: PasswordPromptProps): React.
setLastDarknetResultFromAuth(authResult.result);
if (authResult.result.success) {
DarknetEvents.emit("server-unlocked", server);
DarknetEvents.emit();
} else {
// This selects the text inside the password input field so that the player can immediately start typing a new
// guess without needing to clear out the old one.