diff --git a/frontend/src/DmarcReportPage.js b/frontend/src/DmarcReportPage.js
index a46d2e514a..ca5eb47349 100644
--- a/frontend/src/DmarcReportPage.js
+++ b/frontend/src/DmarcReportPage.js
@@ -135,19 +135,16 @@ export default function DmarcReportPage() {
)
}
- // DMARC bar graph setup
- let graphDisplay
-
// Set DMARC bar graph Loading
- if (graphLoading) {
- graphDisplay = (
+ if (graphLoading || tableLoading) {
+ return (
- Yearly DMARC Graph
+ DMARC Report
)
}
- if (!graphLoading && !graphData?.findDomainByDomain?.hasDMARCReport) {
+ if (!graphData?.findDomainByDomain?.hasDMARCReport) {
return (
@@ -158,8 +155,11 @@ export default function DmarcReportPage() {
)
}
+ // DMARC bar graph setup
+ let graphDisplay
+
// Display graph query error if found
- else if (graphError) {
+ if (graphError) {
graphDisplay =
}
// Set graph display using data if data exists