fix(sync): show last push time as the last sync time (#3760)

This commit is contained in:
Huang Xin
2026-04-05 23:55:41 +08:00
committed by GitHub
parent 8b10e7fb17
commit 09d1e0c040
3 changed files with 19 additions and 4 deletions
@@ -157,7 +157,12 @@ const ViewMenu: React.FC<ViewMenuProps> = ({ bookKey, setIsDropdownOpen }) => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [keepCoverSpread]);
const lastSyncTime = Math.max(config?.lastSyncedAtConfig || 0, config?.lastSyncedAtNotes || 0);
const lastSyncTime = Math.max(
config?.lastSyncedAtConfig || 0,
config?.lastSyncedAtNotes || 0,
config?.lastPushedAtConfig || 0,
config?.lastPushedAtNotes || 0,
);
return (
<Menu