@@ -293,6 +293,10 @@ export default class CFDStore extends BaseStore {
293
293
trading_platform_available_accounts_list_response
294
294
) ;
295
295
this . setCFDSuccessDialog ( true ) ;
296
+ window . sessionStorage . setItem (
297
+ 'cfd_transfer_to_login_id' ,
298
+ response . trading_platform_new_account . account_id
299
+ ) ;
296
300
this . setIsAccountBeingCreated ( false ) ;
297
301
WS . tradingPlatformAccountsList ( CFD_PLATFORMS . CTRADER ) ;
298
302
setPerformanceValue ( 'create_ctrader_account_time' ) ;
@@ -591,6 +595,7 @@ export default class CFDStore extends BaseStore {
591
595
actions ?. setSubmitting ( false ) ;
592
596
this . setError ( false ) ;
593
597
this . setIsMt5PasswordChangedModalVisible ( false ) ;
598
+ window . sessionStorage . setItem ( 'cfd_transfer_to_login_id' , response . mt5_new_account . login ) ;
594
599
this . setCFDSuccessDialog ( true ) ;
595
600
await this . getAccountStatus ( CFD_PLATFORMS . MT5 ) ;
596
601
@@ -650,6 +655,7 @@ export default class CFDStore extends BaseStore {
650
655
actions . setSubmitting ( false ) ;
651
656
this . setError ( false ) ;
652
657
this . setCFDSuccessDialog ( true ) ;
658
+ window . sessionStorage . setItem ( 'cfd_transfer_to_login_id' , response . trading_platform_new_account . account_id ) ;
653
659
await this . getAccountStatus ( CFD_PLATFORMS . DXTRADE ) ;
654
660
655
661
const trading_platform_accounts_list_response = await WS . tradingPlatformAccountsList ( values . platform ) ;
0 commit comments