Skip to content

Commit fd7af7d

Browse files
committed
cleanup
1 parent 983e18f commit fd7af7d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

site/src/api/api.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,7 @@ export const getBuildInfo = async (): Promise<TypesGen.BuildInfoResponse> => {
407407
export const getUpdateCheck =
408408
async (): Promise<TypesGen.UpdateCheckResponse> => {
409409
const response = await axios.get("/api/v2/updatecheck")
410-
// return {
411-
// current: true,
412-
// url: "https://github.com/coder/coder/releases/tag/v0.13.1",
413-
// version: "v0.13.1"
414-
// }
415-
console.log('response.data', response.data)
416410
return response.data
417-
return { current: false, version: 'v0.13.1', url: 'https://github.com/coder/coder/releases/tag/v0.13.1' }
418411
}
419412

420413
export const putWorkspaceAutostart = async (

site/src/xServices/updateCheck/updateCheckXService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ export const updateCheckMachine = createMachine(
142142
permissions: (_, event) => event.data as Permissions,
143143
}),
144144
assignShow: assign((context) => ({
145-
show: localStorage.getItem("dismissedVersion") !== context.updateCheck?.version,
145+
show:
146+
localStorage.getItem("dismissedVersion") !==
147+
context.updateCheck?.version,
146148
})),
147149
assignHide: assign({
148150
show: false,

0 commit comments

Comments
 (0)