Update running method

This commit is contained in:
Jose Garcia 2021-10-14 20:02:02 -04:00
parent 1aec892326
commit 4504e49e96

View file

@ -261,5 +261,5 @@ func (c codespace) hasUnsavedChanges() bool {
// running returns whether the codespace environment is running.
func (c codespace) running() bool {
return c.Environment.State == api.CodespaceEnvironmentStateAvailable
return c.State == api.CodespaceStateAvailable
}