From d2218b63077edfd434eb5e430de538c260c81a87 Mon Sep 17 00:00:00 2001 From: Kyle Sullivan <141261s@acadiau.ca> Date: Fri, 28 Oct 2022 10:52:55 -0300 Subject: [PATCH] Fix email guidance page --- frontend/src/guidance/EmailGuidance.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/guidance/EmailGuidance.js b/frontend/src/guidance/EmailGuidance.js index b6121e3d9e..c338c05bdb 100644 --- a/frontend/src/guidance/EmailGuidance.js +++ b/frontend/src/guidance/EmailGuidance.js @@ -7,9 +7,9 @@ import { GuidanceTagList } from './GuidanceTagList' import { Box, ListItem, OrderedList, Text } from '@chakra-ui/react' const EmailGuidance = ({ emailScan, dmarcPhase = 'unknown' }) => { - const dmarcScan = emailScan.dmarc.edges[0].node - const spfScan = emailScan.spf.edges[0].node - const dkimScan = emailScan.dkim.edges[0].node.results.edges[0].node + const dmarcScan = emailScan.dmarc.edges[0]?.node + const spfScan = emailScan.spf.edges[0]?.node + const dkimScan = emailScan.dkim.edges[0]?.node.results.edges[0]?.node let dmarcSteps @@ -76,23 +76,23 @@ const EmailGuidance = ({ emailScan, dmarcPhase = 'unknown' }) => {