fixed unused variable 2

This commit is contained in:
cryptozoidberg 2024-01-17 16:08:39 +01:00
parent 8dd1b9d5a7
commit 01f00a67e6
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -3508,7 +3508,7 @@ bool wallet2::add_custom_asset_id(const crypto::public_key& asset_id, asset_desc
req.asset_id = asset_id;
bool r = m_core_proxy->call_COMMAND_RPC_GET_ASSET_INFO(req, resp);
if (resp.status == API_RETURN_CODE_OK)
if (r && resp.status == API_RETURN_CODE_OK)
{
m_custom_assets[asset_id] = resp.asset_descriptor;
asset_descriptor = resp.asset_descriptor;