diff --git a/internal_packages/onboarding/lib/account-settings-page.cjsx b/internal_packages/onboarding/lib/account-settings-page.cjsx index 44c8ad1c4..def82131d 100644 --- a/internal_packages/onboarding/lib/account-settings-page.cjsx +++ b/internal_packages/onboarding/lib/account-settings-page.cjsx @@ -265,7 +265,6 @@ class AccountSettingsPage extends React.Component errorMessage: "Sorry, something went wrong on the Nylas server. Please try again. If you're still having issues, contact us at support@nylas.com." @_resize() - _onNetworkError: (err) => errorMessage = err.message if errorMessage == "Invite code required" diff --git a/internal_packages/onboarding/lib/token-auth-page.cjsx b/internal_packages/onboarding/lib/token-auth-page.cjsx index f095b3dd7..7345062c4 100644 --- a/internal_packages/onboarding/lib/token-auth-page.cjsx +++ b/internal_packages/onboarding/lib/token-auth-page.cjsx @@ -25,10 +25,10 @@ class TokenAuthPage extends React.Component @_usub = PageRouterStore.listen(@_onTokenAuthChange) _onTokenAuthChange: => - @setState({ + @setState tokenAuthEnabled: PageRouterStore.tokenAuthEnabled() tokenAuthEnabledError: PageRouterStore.tokenAuthEnabledError() - }) + @_resize() componentWillUnmount: -> @_usub?() diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index 582a99a6d..ca1b4cd99 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -70,6 +70,12 @@ describe "the `atom` global", -> out = atom.getDefaultWindowDimensions() expect(out).toEqual x: 0, y: 0, width: 1000, height: 800 + it "always rounds X and Y", -> + spyOn(screen, 'getPrimaryDisplay').andReturn workAreaSize: width: 1845, height: 955 + + out = atom.getDefaultWindowDimensions() + expect(out).toEqual x: 202, y: 27, width: 1440, height: 900 + describe ".isReleasedVersion()", -> it "returns false if the version is a SHA and true otherwise", ->