Skip to content

Commit

Permalink
Update prediction_market_agent/agents/microchain_agent/nft_treasury_g…
Browse files Browse the repository at this point in the history
…ame/app_nft_treasury_game.py

Co-authored-by: Peter Jung <[email protected]>
  • Loading branch information
gabrielfior and kongzii authored Dec 16, 2024
1 parent 261a2ef commit 2ca0c58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def send_message_part(nft_agent: type[DeployableAgentNFTGameAbstract]) -> None:
format="%0.5f",
)
message_compressed = HexBytes(compress_message(message)).hex() if message else ""
if st.button("Send message"):
if st.button("Send message", disabled=not message):
send_message_via_wallet(
recipient=nft_agent.wallet_address,
message=message_compressed,
Expand Down

0 comments on commit 2ca0c58

Please sign in to comment.