Skip to content

Commit

Permalink
chore(dev): do not log error when fetch was aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Oct 8, 2023
1 parent 2c56940 commit f87ec04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/CreateWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function CreateWallet({ parentRoute, startWallet }: CreateWalletP

const { seedphrase, walletname: createdWalletFileName } = body
const auth = Api.Helper.parseAuthProps(body)

setCreatedWallet({ walletFileName: createdWalletFileName, seedphrase, password, auth })
} catch (e: any) {
const message = t('create_wallet.error_creating_failed', {
Expand Down
5 changes: 4 additions & 1 deletion src/context/ServiceInfoContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ const ServiceInfoProvider = ({ children }: PropsWithChildren<{}>) => {
const abortCtrl = new AbortController()

const refreshSession = () => {
reloadServiceInfo({ signal: abortCtrl.signal }).catch((err) => console.error(err))
reloadServiceInfo({ signal: abortCtrl.signal }).catch((err) => {
if (abortCtrl.signal.aborted) return
console.error(err)
})
}

refreshSession()
Expand Down

0 comments on commit f87ec04

Please sign in to comment.