Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Aug 12, 2024
1 parent 581f41a commit 7293e4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient {

const { uri, approval } = await signClient.connect({ ...connectParams }).catch((error) => {
logger.error(`Init error: ${error.message}`)
localStorage && localStorage.setItem('WC_INIT_ERROR', error.message)
localStorage && localStorage.setItem('beacon:wc-init-error', error.message)
throw new Error(error.message)
})

Expand Down Expand Up @@ -1342,7 +1342,7 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
this.subscribeToSessionEvents(this.signClient)
} catch (error: any) {
logger.error(error.message)
localStorage && localStorage.setItem('WC_INIT_ERROR', error.message)
localStorage && localStorage.setItem('beacon:wc-init-error', error.message)
return undefined
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-ui/src/ui/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
<h3 style={{ color: '#FF4136', margin: '0.6px' }}>
A network error occurred. This issue is not caused by your wallet provider.
</h3>
<span>{errorMessage}</span>
{errorMessage && <span>{errorMessage}</span>}
</>
)
return <Info title={title} description={description} border />
Expand Down

0 comments on commit 7293e4a

Please sign in to comment.