fix build, tipAmountEffective = selectedDemons.totalCoinValue

This commit is contained in:
Sebastian 2022-03-28 14:51:17 -03:00
parent 1d85662946
commit e5f21ec5bb
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -126,11 +126,7 @@ export async function prepareTip(
merchantBaseUrl: res.merchantBaseUrl,
createdTimestamp: TalerProtocolTimestamp.now(),
merchantTipId: res.merchantTipId,
tipAmountEffective: Amounts.sub(
amount,
Amounts.add(withdrawDetails.overhead, withdrawDetails.withdrawFee)
.amount,
).amount,
tipAmountEffective: selectedDenoms.totalCoinValue,
retryInfo: initRetryInfo(),
lastError: undefined,
denomsSel: denomSelectionInfoToState(selectedDenoms),