fix invites signup via lightning/slashtags

This commit is contained in:
keyan 2023-07-31 09:19:53 -05:00
parent bc5a19c6ee
commit b42a934207
1 changed files with 7 additions and 4 deletions

View File

@ -85,10 +85,13 @@ export default function Login ({ providers, callbackUrl, error, text, Header, Fo
className={`mt-2 ${styles.providerButton}`}
key={provider.id}
type={provider.id.toLowerCase()}
onClick={() => router.push({
pathname: router.pathname,
query: { callbackUrl: router.query.callbackUrl, type: provider.name.toLowerCase() }
})}
onClick={() => {
const { nodata, ...query } = router.query
router.push({
pathname: router.pathname,
query: { ...query, type: provider.name.toLowerCase() }
})
}}
text={`${text || 'Login'} with`}
/>
)