diff --git a/website/agb/src/app/crash/backtrace.tsx b/website/agb/src/app/crash/backtrace.tsx index af89b9ac..fca85a71 100644 --- a/website/agb/src/app/crash/backtrace.tsx +++ b/website/agb/src/app/crash/backtrace.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useEffect, useState } from "react"; import { ContentBlock } from "../contentBlock"; import { GameDeveloperSummary } from "./gameDeveloperSummary"; @@ -8,7 +8,10 @@ import { styled } from "styled-components"; import { Debug } from "./debug"; export function BacktracePage() { - const [backtrace, setBacktrace] = useState(getBacktrace); + const [backtrace, setBacktrace] = useState(""); + useEffect(() => { + setBacktrace(getBacktrace()); + }, []); return (