Fix return value of handleDecryptState
This commit is contained in:
parent
d31e18d4ae
commit
91ba7205cc
@ -328,7 +328,7 @@ export async function registerAllListeners() {
|
||||
}
|
||||
const state = services.getStateFromId(process, stateId);
|
||||
|
||||
let res: Record<string, string> = {};
|
||||
let res: Record<string, any> = {};
|
||||
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
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user