Skip to content

Commit

Permalink
Merge pull request #219 from tloncorp/po/fix-412-related-issues
Browse files Browse the repository at this point in the history
Po/fix 412 related issues
  • Loading branch information
arthyn authored Sep 26, 2023
2 parents 70b9adf + 8a3bfbd commit 85ddfc6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/preferences/about-system/AboutSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const AboutSystem = () => {
const { systemBlocked, blockedCharges, blockedCount, freezeApps } =
useSystemUpdate();
const gardenBlocked =
null != blockedCharges.find((charge) => charge.desk == 'garden');
null != blockedCharges.find((charge) => charge.desk == 'landscape');
const hash = basePike && getHash(basePike);
const lag = useLag();

Expand Down
8 changes: 5 additions & 3 deletions ui/src/state/vere.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions ui/src/tiles/TileGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const TileGrid = ({ menu }: TileGridProps) => {
{order
.filter((d) => d !== window.desk && d in charges)
.filter((d) => d !== 'landscape')
.filter((d) => d !== 'garden')
.map((desk) => (
<TileContainer key={desk} desk={desk}>
<Tile
Expand Down

0 comments on commit 85ddfc6

Please sign in to comment.