fix home message

This commit is contained in:
user 2024-08-11 07:51:17 +03:00
parent d8aeacbdcd
commit 6f5082b860
3 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,7 @@ async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs):
chat_wrap, user.translated('home_menu').format(
wallet_address=(
Address(wallet_connection.wallet_address).to_string(1, 1, 1)
if wallet_connection.wallet_address
else user.translated('noWalletConnected')
if wallet_connection else user.translated('noWalletConnected')
),
name=user.front_format(plain_text=True),
), keyboard=get_inline_keyboard([

View File

@ -158,3 +158,6 @@ msgstr "Cancel purchase"
msgid "openContractPage_button"
msgstr "Open smartcontract"
msgid "noWalletConnected"
msgstr "No wallet connected"