From 5eef21d11ac85d916ffb707fdc7edeccea8428ac Mon Sep 17 00:00:00 2001 From: cardosofede Date: Wed, 26 Jun 2024 00:36:08 +0200 Subject: [PATCH] (feat) avoid empty strs --- frontend/pages/orchestration/credentials/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/orchestration/credentials/app.py b/frontend/pages/orchestration/credentials/app.py index 5c3328c..2806d54 100644 --- a/frontend/pages/orchestration/credentials/app.py +++ b/frontend/pages/orchestration/credentials/app.py @@ -47,7 +47,7 @@ with c1: if new_account_name in accounts: st.warning(f"Account {new_account_name} already exists.") st.stop() - elif new_account_name == "": + elif new_account_name == "" or all(char == "_" for char in new_account_name): st.warning("Please enter a valid account name.") st.stop() response = client.add_account(new_account_name)