From 226d12ea44037f82dc4d925bacdd7f97dc50fa51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Victor=20L=C3=B6fgren?= <viclo211@student.liu.se>
Date: Thu, 29 Apr 2021 10:09:14 +0200
Subject: [PATCH] Fix judge view page test

---
 client/src/pages/views/components/JudgeScoringInstructions.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/pages/views/components/JudgeScoringInstructions.tsx b/client/src/pages/views/components/JudgeScoringInstructions.tsx
index 1865ccf2..97062246 100644
--- a/client/src/pages/views/components/JudgeScoringInstructions.tsx
+++ b/client/src/pages/views/components/JudgeScoringInstructions.tsx
@@ -20,7 +20,7 @@ const JudgeScoringInstructions = ({ question }: JudgeScoringInstructionsProps) =
   return (
     <JudgeScoringInstructionsContainer elevation={3}>
       <Typography variant="h4">Rättningsinstruktioner</Typography>
-      <Typography variant="body1">{question.correcting_instructions}</Typography>
+      <Typography variant="body1">{question?.correcting_instructions}</Typography>
     </JudgeScoringInstructionsContainer>
   )
 }
-- 
GitLab