only warn when actually necessary

This commit is contained in:
Florian Dold 2017-12-12 17:37:06 +01:00
parent 9b18c87deb
commit 6594355704
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 4 additions and 1 deletions

View File

@ -1787,6 +1787,8 @@ export interface PurchaseRecord {
* Set to 0 if no refund was made on the purchase.
*/
timestamp_refund: number;
userAccepted: boolean;
}

View File

@ -484,8 +484,9 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea
if (reservePub !== undefined) {
console.log(`confirming reserve ${reservePub} via 201`);
wallet.confirmReserve({reservePub});
} else {
console.warn("got 'X-Taler-Operation: confirm-reserve' without 'X-Taler-Reserve-Pub'");
}
console.warn("got 'X-Taler-Operation: confirm-reserve' without 'X-Taler-Reserve-Pub'");
return;
}