From fa3f9a10831e0796eb91f1241e11fc159019c551 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 16 Jan 2023 16:33:12 +0100 Subject: [PATCH] fix(@desktop/onboarding): recover account crash fixed --- src/app/modules/startup/models/fetching_data_item.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/startup/models/fetching_data_item.nim b/src/app/modules/startup/models/fetching_data_item.nim index fc9ce4e9d2..6e7708c70c 100644 --- a/src/app/modules/startup/models/fetching_data_item.nim +++ b/src/app/modules/startup/models/fetching_data_item.nim @@ -28,7 +28,7 @@ proc loadedMessages*(self: Item): int = return loadedMessages proc receivedMessageAtPosition*(self: Item, position: int) = - if position >= 1 or position <= self.totalMessages: + if position >= 1 and position <= self.totalMessages: self.trackOfLoadedMessages[position-1] = true proc totalMessages*(self: Item): int =