Skip to content

Commit 5371ba0

Browse files
committed
revert(sign-up): redirect uk customer to the new account creation
ref: #MANAGER-17391 Signed-off-by: Sachin Ramesh <[email protected]>
1 parent 00672a5 commit 5371ba0

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

packages/manager/apps/sign-up/src/routing.js

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,30 +69,15 @@ export const state = {
6969
ssoAuthentication.logout($location.search().onsuccess);
7070
},
7171

72-
featureAvailability: /* @ngInject */ ($http) => {
73-
return $http.get(
74-
`/feature/identity-documents,account-creation/availability`,
75-
{
72+
isKycFeatureAvailable: /* @ngInject */ ($http) => {
73+
return $http
74+
.get(`/feature/identity-documents/availability`, {
7675
serviceType: 'aapi',
77-
},
78-
);
79-
},
80-
81-
isKycFeatureAvailable: /* @ngInject */ (featureAvailability) =>
82-
featureAvailability.data['identity-documents'],
83-
84-
isNewAccountCreateAvailable: /* @ngInject */ (featureAvailability) =>
85-
featureAvailability.data['account-creation'],
86-
87-
onEnter: /* @ngInject */ (
88-
$window,
89-
isNewAccountCreateAvailable,
90-
coreURLBuilder,
91-
) => {
92-
if (isNewAccountCreateAvailable) {
93-
const url = coreURLBuilder.buildURL('account-creation', '/#/');
94-
$window.location.assign(url);
95-
}
76+
})
77+
.then(
78+
({ data: featureAvailability }) =>
79+
featureAvailability['identity-documents'],
80+
);
9681
},
9782

9883
kycStatus: /* @ngInject */ ($http, isKycFeatureAvailable) => {

0 commit comments

Comments
 (0)