diff --git a/apps/idos-enclave/src/pages/App.tsx b/apps/idos-enclave/src/pages/App.tsx index a468c7655..c12fd7fa9 100644 --- a/apps/idos-enclave/src/pages/App.tsx +++ b/apps/idos-enclave/src/pages/App.tsx @@ -102,7 +102,7 @@ export function App({ store, enclave }: AppProps) { throw new Error(`Unexpected request from parent: ${requestData.intent}`); responsePort.current = ports[0]; - setEncryptionUserPublicKey(requestData.message.expectedUserEncryptionPublicKey); + setEncryptionUserPublicKey(requestData.message?.expectedUserEncryptionPublicKey); switch (requestData.intent) { case "auth":