wallet-core: fix loop index

This commit is contained in:
Florian Dold 2022-04-18 22:00:26 +02:00
parent 2e0b9b9cff
commit 3c68b2d776
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1036,7 +1036,7 @@ export async function getExchangeWithdrawalInfo(
);
let earliestDepositExpiration: TalerProtocolTimestamp | undefined;
for (let i = 1; i < selectedDenoms.selectedDenoms.length; i++) {
for (let i = 0; i < selectedDenoms.selectedDenoms.length; i++) {
const ds = selectedDenoms.selectedDenoms[i];
// FIXME: Do in one transaction!
const denom = await ws.db