Skip to content
Snippets Groups Projects

#377: balance: Fix undefined variable in case of 'Total' label

Merged #377: balance: Fix undefined variable in case of 'Total' label
Merged Moul requested to merge 377_balance_fix_total into dev
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -92,10 +92,10 @@ async def show_amount_from_pubkey(label, inputs_balance):
@@ -92,10 +92,10 @@ async def show_amount_from_pubkey(label, inputs_balance):
# if `pubkey` is a pubkey, get pubkey:checksum and uid
# if `pubkey` is a pubkey, get pubkey:checksum and uid
if label != "Total":
if label != "Total":
member = await wot.is_member(label)
member = await wot.is_member(label)
pubkey_and_ck = display_pubkey_and_checksum(label)
label = display_pubkey_and_checksum(label)
# display balance table
# display balance table
display = list()
display = list()
display.append(["Balance of pubkey", pubkey_and_ck])
display.append(["Balance of pubkey", label])
if member:
if member:
display.append(["User identifier", member["uid"]])
display.append(["User identifier", member["uid"]])
Loading