diff --git a/ui/src/state/vere.ts b/ui/src/state/vere.ts index 8977a79e..a3d96e0d 100644 --- a/ui/src/state/vere.ts +++ b/ui/src/state/vere.ts @@ -46,12 +46,14 @@ const fetchRuntimeVersion = () => { useVereState.setState((state) => { if (typeof data === 'object' && data !== null) { const vereData = data as Vere; - const vereVersion = vereData.cur.rev.split('/vere/~.')[1]; - const isLatest = vereData.next === undefined; + const vereVersion = vereData.cur.rev.split('/vere/live/~.')[1]; const latestVereVersion = vereData.next !== undefined - ? vereData.next.rev.split('/vere/~.')[1] + ? vereData.next.rev.split('/vere/live/~.')[1] : vereVersion; + const isLatest = + vereVersion === latestVereVersion || vereData.next === undefined; + return Object.assign(vereData, { loaded: true, isLatest,