diff --git a/pages/findings/index.js b/pages/findings/index.js
index fa539ea4..0f2b8e24 100644
--- a/pages/findings/index.js
+++ b/pages/findings/index.js
@@ -2,6 +2,7 @@ import Head from 'next/head'
import NavBar from 'components/NavBar'
import { Container, Heading, Box, Flex, Input, Select, Button, Text } from 'ooni-components'
import { StyledStickyNavBar, StyledStickySubMenu } from 'components/SharedStyledComponents'
+import SpinLoader from 'components/vendor/SpinLoader'
import useFilterWithSort from 'hooks/useFilterWithSort'
import useSWR from 'swr'
import { apiEndpoints, fetcher } from '/lib/api'
@@ -30,7 +31,7 @@ const Index = () => {
const intl = useIntl()
const { user } = useUser()
- const { data, error } = useSWR(apiEndpoints.SEARCH_INCIDENTS, fetcher)
+ const { data, isLoading, error } = useSWR(apiEndpoints.SEARCH_INCIDENTS, fetcher)
const {
searchValue,
@@ -118,33 +119,38 @@ const Index = () => {
-
- {sortedAndFilteredData.map((incident) => (
-
-
- {incident.start_time && formatLongDate(incident.start_time, intl.locale)} - {incident.end_time ? formatLongDate(incident.end_time, intl.locale) : 'ongoing'}
-
-
- {intl.formatMessage({id: 'Findings.Index.HighLightBox.CreatedOn'}, {date: incident?.create_time && formatLongDate(incident?.create_time, intl.locale)})}
-
- >
- }
- footer={
-
-
-
-
-
- }
- />
- ))}
-
+ {isLoading &&
+
+ }
+ {!!sortedAndFilteredData?.length &&
+
+ {sortedAndFilteredData.map((incident) => (
+
+
+ {incident.start_time && formatLongDate(incident.start_time, intl.locale)} - {incident.end_time ? formatLongDate(incident.end_time, intl.locale) : 'ongoing'}
+
+
+ {intl.formatMessage({id: 'Findings.Index.HighLightBox.CreatedOn'}, {date: incident?.create_time && formatLongDate(incident?.create_time, intl.locale)})}
+
+ >
+ }
+ footer={
+
+
+
+
+
+ }
+ />
+ ))}
+
+ }
>
)