mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-01-19 21:24:22 +01:00
(feat) avoid empty strs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user