File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -470,15 +470,16 @@ def account():
470470
471471 # Handle custom setup modals
472472 if modal_action == AccountActionTypes .DELETE_APP :
473- for lang in user_lang :
473+ if isinstance ( form , DeleteAppConfirmation ) :
474474 # Create a separate DeleteAppConfirmation form for each language app the user has, with custom app name and form action URL.
475- if isinstance (form , DeleteAppConfirmation ):
476- form .set_app_name (lang .app_name )
477- setattr (form , 'id' , f"DeleteAppConfirmation-{ lang .code } Modal" )
478- form .set_action (
475+ for lang in user_lang :
476+ lang_form = DeleteAppConfirmation ()
477+ lang_form .set_app_name (lang .app_name )
478+ setattr (lang_form , 'id' , f"DeleteAppConfirmation-{ lang .code } Modal" )
479+ lang_form .set_action (
479480 url_for ('main.account' , action = modal_action .value , lang = lang .code )
480481 )
481- account_modals [f"{ modal_action .value } :{ lang .code } " ] = form
482+ account_modals [f"{ modal_action .value } :{ lang .code } " ] = lang_form
482483 continue
483484
484485 if modal_action == AccountActionTypes .UPDATE_INFO :
You can’t perform that action at this time.
0 commit comments