From a0d038318e441b57a8a4f58b60c0a9410fb2a0b7 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 12 Jun 2023 19:17:21 +0200 Subject: [PATCH] fix if condition --- plugins/stronghold/guest-js/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index aa58d966..9450826b 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -299,7 +299,7 @@ export class Store { client: this.client, key: toBytesDto(key), }).then((v) => { - if (v !== null || undefined) { + if (v !== null && v !== undefined) { return Uint8Array.from(v); } else { return null;