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' }) => {