Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Bug) Non-Error promise rejection captured with keys: currentTarget, isTrusted, target, type #2851

Merged
merged 11 commits into from
Jan 3, 2021
3 changes: 2 additions & 1 deletion src/lib/hooks/useDeleteAccountDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import LoadingIcon from '../../components/common/modal/LoadingIcon'
import retryImport from '../utils/retryImport'
import restart from '../utils/restart'
import { isMobileNative } from '../utils/platform'

const log = logger.child({ from: 'useDeleteAccountDialog' })

export const deleteGunDB = () => {
Expand All @@ -25,7 +26,7 @@ export const deleteGunDB = () => {
const objectStoreRequest = objectStore.clear()

objectStoreRequest.onsuccess = res
objectStoreRequest.onerror = rej
objectStoreRequest.onerror = () => rej(objectStoreRequest.error)
}
})
}
Expand Down