Skip to content

Commit

Permalink
Merge pull request #1293 from Ekep-Obasi/hotfix/app-does-display-offline
Browse files Browse the repository at this point in the history
hotfix: app does not display offline
  • Loading branch information
Rassl authored Apr 18, 2024
2 parents db866cd + 0a1ae23 commit 034238e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/App/Splash/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Splash = memo(({ children }: PropsWithChildren) => {
let intervalId: NodeJS.Timer

if (!isFetching && message && appMetaData) {
// increase progress fro 0 to 50% after all data is fetched
// increase progress from 0 to 50% after all data is fetched
setProgress((prev) => (!prev ? 50 : prev))

intervalId = setInterval(() => {
Expand All @@ -68,7 +68,7 @@ export const Splash = memo(({ children }: PropsWithChildren) => {
}
}, [appMetaData, fetchData, isFetching, message, stats])

if (!message.some(({ value }) => !!value) || !appMetaData) {
if (isLoading && (!message.some(({ value }) => !!value) || !appMetaData)) {
return null
}

Expand All @@ -79,7 +79,7 @@ export const Splash = memo(({ children }: PropsWithChildren) => {
<SphereAnimation />
<Flex style={{ color: colors.white }}>
<TitleWrapper>
<Text className="title">{appMetaData.title}</Text>
<Text className="title">{appMetaData?.title}</Text>
<Text className="subtitle">Second Brain</Text>
</TitleWrapper>
<LinearProgress color="inherit" sx={{ my: 1.75, height: '2px' }} value={progress} variant="determinate" />
Expand Down

0 comments on commit 034238e

Please sign in to comment.