Skip to content

Commit

Permalink
fix(wallet): toast overlay connecting dapp buttons (#4243)
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad authored Nov 27, 2024
1 parent 207bfa0 commit ea7499c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/wallet/src/ui/app/shared/toaster/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ function getBottomSpace(pathname: string, isMenuVisible: boolean, isBottomNavSpa
'/accounts/manage',
].includes(pathname);

if (overlayWithActionButton || isBottomNavSpace) {
return '!bottom-16';
const matchDynamicPaths = ['/dapp/connect'].some((path) => pathname.startsWith(path));

if (overlayWithActionButton || isBottomNavSpace || matchDynamicPaths) {
return '!bottom-20';
}

return '';
Expand Down

0 comments on commit ea7499c

Please sign in to comment.