Skip to content

fix(site): Fix login flow #6294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
BrunoQuaresma committed Feb 22, 2023
commit ad8fc32e9e6ccd7894e7899aeb8fbefc13f775b5
4 changes: 0 additions & 4 deletions site/src/pages/UserSettingsPage/AccountPage/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export const AccountPage: FC = () => {
const { updateProfileError } = authState.context
const canEditUsers = permissions && permissions.updateUsers

if (!me) {
throw new Error("No current user found")
}

return (
<Section title={Language.title} description="Update your account info">
<AccountForm
Expand Down
1 change: 1 addition & 0 deletions site/src/xServices/auth/authXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export const authMachine =
},
},
signedIn: {
type: "parallel",
on: {
SIGN_OUT: {
target: "signingOut",
Expand Down
6 changes: 3 additions & 3 deletions site/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10779,9 +10779,9 @@ minipass@^3.0.0, minipass@^3.1.1:
yallist "^4.0.0"

minipass@^4.0.0:
version "4.0.2"
resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.0.2.tgz#26fc3364d5ea6cb971c6e5259eac67a0887510d1"
integrity sha512-4Hbzei7ZyBp+1aw0874YWpKOubZd/jc53/XU+gkYry1QV+VvrbO8icLM5CUtm4F0hyXn85DXYKEMIS26gitD3A==
version "4.2.0"
resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.0.tgz#4bf124d8c87c14e99846f9a27c3219d956998c0e"
integrity sha512-ExlilAIS7zJ2EWUMaVXi14H+FnZ18kr17kFkGemMqBx6jW0m8P6XfqwYVPEG53ENlgsED+alVP9ZxC3JzkK23Q==

minizlib@^2.1.1:
version "2.1.2"
Expand Down