Skip to content

Commit

Permalink
fix: fix issues raised by e2e tests (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffmcgee725 committed Jan 25, 2025
1 parent 262d8f7 commit e49c99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class PermissionPageContainer extends Component {
),
};

if (Object.keys(request.response.permissions).length > 0) {
if (Object.keys(request.permissions).length > 0) {
approvePermissionsRequest(request);
} else {
rejectPermissionsRequest(request.metadata.id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getDefaultSelectedAccounts(currentAddress, permissionsRequest) {
const requestedSessionsScopes = getRequestedSessionScopes(permissionsRequest);
const requestedAccounts = getEthAccounts(requestedSessionsScopes);

if (requestedAccounts) {
if (requestedAccounts.length) {
return new Set(
requestedAccounts
.map((address) => address.toLowerCase())
Expand Down

0 comments on commit e49c99f

Please sign in to comment.