commit 0c6247c6ec8647cb5152129d4e16e426192dfd77
parent 65cd2a4f582f3b09c3b7ddd42f6d3d28b6e2ea84
Author: Florian Dold <florian@dold.me>
Date: Sat, 18 Jul 2026 16:44:39 +0200
fix call on undefined
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts
@@ -2399,7 +2399,7 @@ async function getCounterpartyEffectiveDepositAmount(
// FIXME/NOTE: the line below _likely_ throws exception
// about "find method not found on undefined" when the wireType
// is not supported by the Exchange.
- const fee = exchangeDetails.wireInfo.feesForType[wireType].find((x) => {
+ const fee = exchangeDetails.wireInfo.feesForType[wireType]?.find((x) => {
return AbsoluteTime.isBetween(
AbsoluteTime.now(),
AbsoluteTime.fromProtocolTimestamp(x.startStamp),