Skip to content

Commit

Permalink
feat: back should route to top-wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasGassmann committed Jan 12, 2024
1 parent 2d51acd commit 86d9dda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/beacon-ui/src/ui/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1052,12 +1052,10 @@ const openAlert = async (config: AlertConfig): Promise<string> => {
onClickShowMore={handleClickShowMoreContent}
onCloseClick={() => handleCloseAlert()}
onBackClick={
currentInfo() === 'install' && !isMobile()
currentInfo() === 'install'
? () => setCurrentInfo('top-wallets')
: currentInfo() === 'qr'
? () => setCurrentInfo('top-wallets')
: currentInfo() === 'install' && isMobile()
? () => setCurrentInfo('wallets')
: currentInfo() === 'wallets' && isMobile()
? () => setCurrentInfo('top-wallets')
: currentInfo() === 'help'
Expand Down

0 comments on commit 86d9dda

Please sign in to comment.