diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts index 052d50ca7..7c6b00bcc 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts @@ -916,10 +916,12 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { ); maybeAgeCommitmentHash = ach; hAgeCommitment = decodeCrock(ach); - minimumAgeSig = AgeRestriction.commitmentAttest( - depositInfo.ageCommitmentProof, - depositInfo.requiredMinimumAge!, - ); + if (depositInfo.requiredMinimumAge != null) { + minimumAgeSig = AgeRestriction.commitmentAttest( + depositInfo.ageCommitmentProof, + depositInfo.requiredMinimumAge, + ); + } } else { // All zeros. hAgeCommitment = new Uint8Array(32);