Fix message: null on error page

This commit is contained in:
Kalle
2022-02-26 15:29:18 +02:00
parent cc475e6083
commit 52e4d5e9e9

View File

@@ -86,7 +86,7 @@ export function ErrorBoundary({ error }: { error: Error }) {
<Layout>
<div className="container">
<h1>Error happened: {message}</h1>
{data && data.length > 0 && <p>Message: {data}</p>}
{data && data.length > 0 && data !== "null" && <p>Message: {data}</p>}
<hr />
<p className="mt-2 text-sm">
If you need help or want to report the error so that it can be fixed