1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

src/apps/fido_u2f: fix confirmation

This commit is contained in:
Jan Pochyla 2018-02-26 17:13:17 +01:00
parent af53d39c44
commit ab9a82e95a

View File

@ -469,13 +469,13 @@ class ConfirmState:
@ui.layout
async def confirm_layout(self) -> None:
from trezor.ui.confirm import HoldToConfirmDialog
from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED
content = ConfirmContent(self.action, self.app_id)
dialog = HoldToConfirmDialog(content)
ui.display.clear()
return await dialog
return await dialog == CONFIRMED