format code

This commit is contained in:
Bekbolsun
2024-02-19 19:35:12 +06:00
parent 13f9bb13fd
commit adbc7d455d
12 changed files with 37 additions and 61 deletions

View File

@@ -60,10 +60,8 @@ export const ModalSignUp = () => {
try {
setIsLoading(true)
const k: any = await swicCall('generateKey', name)
if (k.name)
notify(`Account created for "${k.name}"`, 'success')
else
notify(`Failed to assign name "${name}", try again`, 'error')
if (k.name) notify(`Account created for "${k.name}"`, 'success')
else notify(`Failed to assign name "${name}", try again`, 'error')
setIsLoading(false)
setTimeout(() => {
// give frontend time to read the new key first