File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -135,19 +135,16 @@ export default function DmarcReportPage() {
135135 )
136136 }
137137
138- // DMARC bar graph setup
139- let graphDisplay
140-
141138 // Set DMARC bar graph Loading
142- if ( graphLoading ) {
143- graphDisplay = (
139+ if ( graphLoading || tableLoading ) {
140+ return (
144141 < LoadingMessage >
145- < Trans > Yearly DMARC Graph </ Trans >
142+ < Trans > DMARC Report </ Trans >
146143 </ LoadingMessage >
147144 )
148145 }
149146
150- if ( ! graphLoading && ! graphData ?. findDomainByDomain ?. hasDMARCReport ) {
147+ if ( ! graphData ?. findDomainByDomain ?. hasDMARCReport ) {
151148 return (
152149 < Box align = "center" w = "100%" px = { 4 } >
153150 < Text textAlign = "center" fontSize = "3xl" fontWeight = "bold" >
@@ -158,8 +155,11 @@ export default function DmarcReportPage() {
158155 )
159156 }
160157
158+ // DMARC bar graph setup
159+ let graphDisplay
160+
161161 // Display graph query error if found
162- else if ( graphError ) {
162+ if ( graphError ) {
163163 graphDisplay = < ErrorFallbackMessage error = { graphError } />
164164 }
165165 // Set graph display using data if data exists
You can’t perform that action at this time.
0 commit comments