From d8128155b0828723d041a6627b1976cf231d2fbf Mon Sep 17 00:00:00 2001 From: Patrick O'Sullivan Date: Tue, 26 Sep 2023 06:55:27 -0500 Subject: [PATCH] Fix vere runtime being misreported as behind --- ui/src/state/vere.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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,