Skip to content

Commit af7a6e6

Browse files
authored
fix: save new org to visited orgs on google signup (#4082)
1 parent 294f6f3 commit af7a6e6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/pages/signup/callback.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useState } from 'react'
22
import { useRouter } from 'next/router'
33

44
import { useServerConfig } from '../../lib/serverconfig'
5+
import { saveToVisitedOrgs } from '../../lib/login'
56
import LoginLayout from '../../components/layouts/login'
67
import OrgSignup from '../../components/org-signup'
78

@@ -55,6 +56,7 @@ export default function Callback() {
5556

5657
// redirect to the new org subdomain
5758
let created = await jsonBody(res)
59+
saveToVisitedOrgs(`${created?.organization?.domain}`, orgName)
5860

5961
window.localStorage.removeItem('redirectURL')
6062
window.location = `${window.location.protocol}//${created?.organization?.domain}`

0 commit comments

Comments
 (0)