mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-09 08:48:15 +01:00
fix(device-utils): fix firmware version array util
it would return null in case of minor or patch version is 0
This commit is contained in:
@@ -11,7 +11,7 @@ export const getFirmwareVersionArray = (device?: Device): VersionArray | null =>
|
||||
const { features } = device;
|
||||
|
||||
if (isDeviceInBootloaderMode(device)) {
|
||||
return features.fw_major && features.fw_minor && features.fw_patch
|
||||
return features.fw_major
|
||||
? ([features.fw_major, features.fw_minor, features.fw_patch] as VersionArray)
|
||||
: null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user