Skip to content

Commit 1515e72

Browse files
committed
[dashboard] SSOLogin: fix orgSlug source precedence to: path/search/localStorage
1 parent 1716116 commit 1515e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/login/SSOLoginForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const SSOLoginForm: FC<Props> = ({ onSuccess }) => {
3535
const singleOrgMode = (onboardingState?.organizationCountTotal || 0) < 2;
3636

3737
const [orgSlug, setOrgSlug] = useState(
38-
getOrgSlugFromPath(location.pathname) || readSSOOrgSlug() || getOrgSlugFromQuery(location.search) || "",
38+
getOrgSlugFromPath(location.pathname) || getOrgSlugFromQuery(location.search) || readSSOOrgSlug() || "",
3939
);
4040
const [error, setError] = useState("");
4141

0 commit comments

Comments
 (0)