From b65ed285c989b295763a5b0e8cfb5aa501f8db84 Mon Sep 17 00:00:00 2001 From: Mo <51370781+Mohammed-Mamoun98@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:24:18 +0200 Subject: [PATCH] feat: add fallback to storage's `humanId` variable (#371) --- apps/idos-enclave/src/lib/enclave.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/idos-enclave/src/lib/enclave.js b/apps/idos-enclave/src/lib/enclave.js index 3885f651c..c435d2d3b 100644 --- a/apps/idos-enclave/src/lib/enclave.js +++ b/apps/idos-enclave/src/lib/enclave.js @@ -71,7 +71,7 @@ export class Enclave { } return { - humanId: this.store.get("human-id"), + humanId: this.humanId ?? this.store.get("human-id"), encryptionPublicKey: storeWithCodec.get("encryption-public-key"), signerAddress: this.store.get("signer-address"), signerPublicKey: this.store.get("signer-public-key"),