fix: player throws error whenever settings panel is openned

This commit is contained in:
--remove-section committed 2026-10-20 18:08:50 +05:30
1 parent 0c50acddd9
commit 2d5f49c32e
11 files changed
+113 -115

No files matched your search

@@ -31,15 +31,16 @@ export const ErrorNotice = ({ error }: { error?: Error }) => {
</div>
<Typography
variant="h3"
color="white"
sx={{
color: "white",
fontWeight: 300,
}}
>
Something went wrong.
</Typography>
<Typography
variant="h5"
variant="body2"
component="pre"
style={{
padding: "0.5em",
background: "rgb(0 0 0 / 1)",
@@ -49,15 +50,16 @@ export const ErrorNotice = ({ error }: { error?: Error }) => {
maxHeight: "20em",
overflow: "auto",
marginTop: "1em",
// opacity: 0.6,
whiteSpace: "pre-wrap",
}}
color="gray"
sx={{
color: "grey.400",
fontFamily: "JetBrains Mono Variable",
fontWeight: 100,
}}
>
{JSON.stringify(error?.stack)}
{error
? error.stack || `${error.name}: ${error.message}`
: "Unknown error"}
</Typography>
</Box>
);