File tree Expand file tree Collapse file tree 1 file changed +8
-23
lines changed
packages/manager/apps/sign-up/src Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments