From 197ff36c2015cf1084512fb1c53cccbf4bf190fd Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Sat, 10 Aug 2024 12:22:10 +0500 Subject: [PATCH] web: only show sync status in placeholder on first sync --- apps/web/src/components/placeholders/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/placeholders/index.tsx b/apps/web/src/components/placeholders/index.tsx index 6df137ac6..e302e962b 100644 --- a/apps/web/src/components/placeholders/index.tsx +++ b/apps/web/src/components/placeholders/index.tsx @@ -28,8 +28,9 @@ function Placeholder(props: PlaceholderProps) { const { context, text } = props; const tip = useTip(context); const syncStatus = useAppStore((store) => store.syncStatus); + const isFirstSync = useAppStore((store) => store.lastSynced === 0); - if (syncStatus.key === "syncing" && context === "notes") { + if (isFirstSync && syncStatus.key === "syncing" && context === "notes") { return (