From e56c6519e06260dcbc67c85473b60e744f413a6c Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Mon, 5 Sep 2022 18:03:17 +0200 Subject: [PATCH] fix community fetching on `js-waku`'s abort --- packages/status-js/src/client/community/community.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/status-js/src/client/community/community.ts b/packages/status-js/src/client/community/community.ts index 40c5426e..74b29395 100644 --- a/packages/status-js/src/client/community/community.ts +++ b/packages/status-js/src/client/community/community.ts @@ -99,7 +99,9 @@ export class Community { while (--index >= 0) { this.client.handleWakuMessage(wakuMessages[index]) - return this.description !== undefined + if (this.description) { + return true + } } }, })