From 91ba7205cc691b1b301769edf04d2bdf78ca5200 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Sun, 15 Jun 2025 22:17:22 +0200 Subject: [PATCH] Fix return value of `handleDecryptState` --- src/router.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/router.ts b/src/router.ts index 5ff91f1..e2aee3a 100755 --- a/src/router.ts +++ b/src/router.ts @@ -328,7 +328,7 @@ export async function registerAllListeners() { } const state = services.getStateFromId(process, stateId); - let res: Record = {}; + let res: Record = {}; if (state) { // Decrypt all the data we have the key for for (const attribute of Object.keys(state.pcd_commitment)) { @@ -344,8 +344,7 @@ export async function registerAllListeners() { window.parent.postMessage( { type: MessageType.DATA_RETRIEVED, - data: JSON.stringify(res), - token + data: res, }, event.origin );