mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 16:08:32 +00:00
WIP - assume False as a default bool value, not None
This commit is contained in:
parent
fd2d8ada3d
commit
6e929e4920
@ -167,7 +167,8 @@ impl Field<bool> {
|
|||||||
if let Some(result) = self.get() {
|
if let Some(result) = self.get() {
|
||||||
Ok(result.into())
|
Ok(result.into())
|
||||||
} else {
|
} else {
|
||||||
Ok(NONE)
|
// If nothing there, assume false
|
||||||
|
Ok(false.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user