refactor: log timeout error only, no toast
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s

This commit is contained in:
enes 2024-09-13 11:14:10 +02:00
parent ea7e3a0964
commit ba24e7417d

View File

@ -101,7 +101,8 @@ export const Nostr = () => {
}
} catch (error) {
if (error instanceof TimeoutError) {
toast.error("Extension didn't respond in time")
// Just log the error, no toast, user has already been notified with the loading screen
console.error("Extension didn't respond in time")
} else {
toast.error('Error capturing public key from nostr extension: ' + error)
}