Send dm on sigit sign/complete #230

Open
enes wants to merge 14 commits from 92-send-completion-dm into staging
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 6f4b41d84b - Show all commits

View File

@ -56,8 +56,7 @@ export const useAuth = () => {
* method will be chosen (extension or keys)
*
* @param pubkey of the user trying to login
* @returns url to redirect if authentication successfull
* or error if otherwise
* @returns url to redirect if user has no relays set
*/
const authAndGetMetadataAndRelaysMap = useCallback(
async (pubkey: string) => {
@ -108,7 +107,7 @@ export const useAuth = () => {
dispatch(setRelayMapAction(relayMap))
}
return appPrivateRoutes.homePage
return
},
[
dispatch,

View File

@ -46,7 +46,7 @@ export const MainLayout = () => {
const hasSubscribed = useRef(false)
const navigateAfterLogin = useCallback(
(path: string) => {
(path: string | undefined) => {
const isCallback = window.location.hash.startsWith('#/?callbackPath=')
if (isCallback) {
const path = atob(window.location.hash.replace('#/?callbackPath=', ''))
@ -57,7 +57,7 @@ export const MainLayout = () => {
navigate(path)
return
}
navigate(path)
if (path) navigate(path)
},
[navigate, setSearchParams]
)