Skip to content

Commit c3272cc

Browse files
authored
remove unnecessary logic
1 parent 66b1fcd commit c3272cc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ui/pages/permissions-connect/permissions-connect.component.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,7 @@ export default class PermissionConnect extends Component {
155155
if (!permissionsRequest) {
156156
history.replace(DEFAULT_ROUTE);
157157
return;
158-
}
159-
// if this is an incremental permission request for permitted chains, skip the account selection
160-
if (
161-
permissionsRequest?.diff?.permissionDiffMap?.[
162-
PermissionNames.permittedChains
163-
]
164-
) {
165-
history.replace(confirmPermissionPath);
166-
}
158+
}
167159
if (history.location.pathname === connectPath && !isRequestingAccounts) {
168160
switch (requestType) {
169161
case 'wallet_installSnap':

0 commit comments

Comments
 (0)