diff --git a/src/services/collectionService.ts b/src/services/collectionService.ts index a3c82f0bb..9f2f708d9 100644 --- a/src/services/collectionService.ts +++ b/src/services/collectionService.ts @@ -432,14 +432,14 @@ export const shareCollection = async ( const token = getToken(); const publicKey: string = await getPublicKey(withUserEmail); - const encryptedKey: B64EncryptionResult = await worker.boxSeal( + const encryptedKey: string = await worker.boxSeal( collection.key, publicKey ); const shareCollectionRequest = { collectionID: collection.id, email: withUserEmail, - encryptedKey: encryptedKey.encryptedData, + encryptedKey: encryptedKey, }; await HTTPService.post( `${ENDPOINT}/collections/share`,