feat: 💨
This commit is contained in:
parent
248b4ec93c
commit
39d8282d7b
1 changed files with 3 additions and 2 deletions
|
|
@ -41,7 +41,8 @@ const RizfulPage = forwardRef(({ index }: { index?: number }, ref) => {
|
||||||
|
|
||||||
const updateUserProfile = async (address: string) => {
|
const updateUserProfile = async (address: string) => {
|
||||||
try {
|
try {
|
||||||
if (address === profile?.lightningAddress) {
|
// If the profile already has a lightning address, do nothing
|
||||||
|
if (profile?.lightningAddress) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -101,7 +102,7 @@ const RizfulPage = forwardRef(({ index }: { index?: number }, ref) => {
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
toast.error(e instanceof Error ? e.message : String(e))
|
toast.error(e instanceof Error ? e.message : String(e))
|
||||||
} finally {
|
} finally {
|
||||||
setConnecting(false)
|
setTimeout(() => setConnecting(false), 5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue