diff --git a/app/lib/services/getServerTimeSync.ts b/app/lib/services/getServerTimeSync.ts index 9bce93451c..023b8a2be9 100644 --- a/app/lib/services/getServerTimeSync.ts +++ b/app/lib/services/getServerTimeSync.ts @@ -2,9 +2,7 @@ export const getServerTimeSync = async (server: string) => { try { const response = await Promise.race([fetch(`${server}/_timesync`), new Promise(res => setTimeout(res, 2000))]); const data = await response?.json(); - if (data?.data) { - return parseInt(data.data); - } + if (data) return parseInt(data); return null; } catch { return null;