diff options
Diffstat (limited to 'src/webex/notify.ts')
| -rw-r--r-- | src/webex/notify.ts | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/src/webex/notify.ts b/src/webex/notify.ts index 05883e8bb..1a447c0ac 100644 --- a/src/webex/notify.ts +++ b/src/webex/notify.ts @@ -29,7 +29,8 @@ import URI = require("urijs");  import wxApi = require("./wxApi");  import { getTalerStampSec } from "../helpers"; -import { TipToken, QueryPaymentResult } from "../types"; +import { TipToken } from "../talerTypes"; +import { QueryPaymentResult } from "../walletTypes";  import axios from "axios"; @@ -272,7 +273,12 @@ function talerPay(msg: any): Promise<any> {        const merchantDomain = new URI(document.location.href).origin();        let walletResp;        try { -        walletResp = await wxApi.getTipPlanchets(merchantDomain, tipToken.tip_id, tipToken.amount, deadlineSec, tipToken.exchange_url, tipToken.next_url); +        walletResp = await wxApi.getTipPlanchets(merchantDomain, +                                                 tipToken.tip_id, +                                                 tipToken.amount, +                                                 deadlineSec, +                                                 tipToken.exchange_url, +                                                 tipToken.next_url);        } catch (e) {          wxApi.logAndDisplayError({            message: e.message, @@ -283,12 +289,12 @@ function talerPay(msg: any): Promise<any> {          throw e;        } -      let planchets = walletResp; +      const planchets = walletResp;        if (!planchets) {          wxApi.logAndDisplayError({ -          message: "processing tip failed",            detail: walletResp, +          message: "processing tip failed",            name: "tipping-failed",            sameTab: true,          }); | 
