transactions render fix

Co-authored-by: Nikita Vostokov <1042932+wosk@users.noreply.github.com>
This commit is contained in:
Methodius 2024-02-14 12:44:03 +09:00
parent 5c88e680a6
commit 3f29295380
No known key found for this signature in database
GPG key ID: 122FA99A00B41679

View file

@ -125,13 +125,12 @@ void nfc_render_emv_transactions(const EmvApplication* apl, FuriString* str) {
furi_string_cat_printf(str, ".%02X", a[x]); furi_string_cat_printf(str, ".%02X", a[x]);
break; break;
} }
if(a[x]) { if(top && a[x]) {
if(top) { // print without leading zeros if exist
furi_string_cat_printf(str, "%X", a[x]); furi_string_cat_printf(str, "%X", a[x]);
top = false; top = false;
} else { } else {
furi_string_cat_printf(str, "%02X", a[x]); furi_string_cat_printf(str, "%02X", a[x]);
}
} }
} }
} }