diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
commit | fd2cd9c383b07cd681c18137396deae025d98047 (patch) | |
tree | 05de454bb6fc0fcb95b66b6ef87bcd555e81b58c /src/webex/notify.ts | |
parent | eb689d60aca8fc80e27ea60c4e4d7e848b01bea9 (diff) |
fix lint issues and separate message types into multiple files
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, }); |