Skip to content

Commit

Permalink
Merge pull request #223 from pkova/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesacklin authored Oct 6, 2023
2 parents 150ad47 + e54178e commit b0481af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/state/vere.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ const fetchRuntimeVersion = () => {
useVereState.setState((state) => {
if (typeof data === 'object' && data !== null) {
const vereData = data as Vere;
const vereVersion = vereData.cur.rev.split('/vere/live/~.')[1];
const vereVersion = vereData.cur.rev.split('/')[3].substr(2);
const latestVereVersion =
vereData.next !== undefined
? vereData.next.rev.split('/vere/live/~.')[1]
? vereData.next.rev.split('/')[2].substr(3)
: vereVersion;
const isLatest =
vereVersion === latestVereVersion || vereData.next === undefined;
Expand Down

0 comments on commit b0481af

Please sign in to comment.