aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r--packages/taler-wallet-core/src/util/coinSelection.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts
index b3439067e..97e25abd3 100644
--- a/packages/taler-wallet-core/src/util/coinSelection.ts
+++ b/packages/taler-wallet-core/src/util/coinSelection.ts
@@ -291,11 +291,14 @@ export function selectPayCoins(
aci.denomPub.age_mask,
req.requiredMinimumAge,
);
- if (!aci.ageCommitmentProof) {
- // No age restriction, can't use for this payment
- continue;
- }
- if (aci.ageCommitmentProof.proof.privateKeys.length < index) {
+ // if (!aci.ageCommitmentProof) {
+ // // No age restriction, can't use for this payment
+ // continue;
+ // }
+ if (
+ aci.ageCommitmentProof &&
+ aci.ageCommitmentProof.proof.privateKeys.length < index
+ ) {
// Available age proofs to low, can't use for this payment
continue;
}