File tree 2 files changed +3
-8
lines changed 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -407,14 +407,7 @@ export const getBuildInfo = async (): Promise<TypesGen.BuildInfoResponse> => {
407
407
export const getUpdateCheck =
408
408
async ( ) : Promise < TypesGen . UpdateCheckResponse > => {
409
409
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 )
416
410
return response . data
417
- return { current : false , version : 'v0.13.1' , url : 'https://github.com/coder/coder/releases/tag/v0.13.1' }
418
411
}
419
412
420
413
export const putWorkspaceAutostart = async (
Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ export const updateCheckMachine = createMachine(
142
142
permissions : ( _ , event ) => event . data as Permissions ,
143
143
} ) ,
144
144
assignShow : assign ( ( context ) => ( {
145
- show : localStorage . getItem ( "dismissedVersion" ) !== context . updateCheck ?. version ,
145
+ show :
146
+ localStorage . getItem ( "dismissedVersion" ) !==
147
+ context . updateCheck ?. version ,
146
148
} ) ) ,
147
149
assignHide : assign ( {
148
150
show : false ,
You can’t perform that action at this time.
0 commit comments