Remove disallow/remember on popup close, add pause before sending auth_url

This commit is contained in:
artur
2024-02-19 19:31:02 +03:00
parent ecf27d8d23
commit 3de4a508be
3 changed files with 29 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ import { DOMAIN } from '@/utils/consts'
import { fetchNip05 } from '@/utils/helpers/helpers'
import { Stack, Typography, useTheme } from '@mui/material'
import { ChangeEvent, Fragment, useCallback, useEffect, useState } from 'react'
import { useParams, useSearchParams } from 'react-router-dom'
import { useParams } from 'react-router-dom'
import { useDebounce } from 'use-debounce'
import { StyledSettingContainer } from './styled'
import { SectionTitle } from '@/shared/SectionTitle/SectionTitle'
@@ -55,7 +55,7 @@ export const ModalEditName = () => {
setIsAvailable(true)
setIsChecking(false)
}
}, [debouncedName])
}, [debouncedName, npub])
useEffect(() => {
checkIsUsernameAvailable()