web: only show sync status in placeholder on first sync

This commit is contained in:
Abdullah Atta
2024-08-10 12:22:10 +05:00
parent d94474de79
commit 197ff36c20

View File

@@ -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 (
<Flex
variant="columnCenter"