fix(wallet): cannot recover Status profile if there is no metadata on a keycard

fixes: #16907
This commit is contained in:
Sale Djenic 2024-12-06 14:46:10 +01:00 committed by saledjenic
parent 7152c2b409
commit 1bd54401a2

View File

@ -269,7 +269,7 @@ proc handleKeycardSyncing[T](self: Module[T]) =
if flowEvent.keyUid != self.controller.getKeyUidWhichIsBeingSyncing():
self.controller.terminateCurrentFlow(lastStepInTheCurrentFlow = false)
return
if eventType == ResponseTypeValueKeycardFlowResult and flowEvent.error.len == 0:
if eventType == ResponseTypeValueKeycardFlowResult and (flowEvent.error.len == 0 or flowEvent.error == ErrorNoData):
var kpDto = KeycardDto(keycardUid: flowEvent.instanceUID,
keycardName: flowEvent.cardMetadata.name,
keycardLocked: false,