fix report status error
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 14s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 13s

This commit is contained in:
2025-06-21 16:43:51 +02:00
parent ee8f595ecc
commit 9092012cf7

View File

@ -12,15 +12,15 @@ const { report } = Astro.props;
<div class="flex justify-center items-center">
<div class="mt-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg">
{
report.status.status === null ? (
report.status?.status == null ? (
<p>Dein Report wird in kürze bearbeitet</p>
) : report.status.status === 'open' ? (
) : report.status?.status === 'open' ? (
<p>Dein Report befindet sich in Bearbeitung</p>
) : (
<>
<p>Dein Report wurde bearbeitet</p>
<Textarea
value={report.status.statement}
value={report.status?.statement}
label="Antwort vom Admin Team (optional)"
rows={5}
dynamicWidth