gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] branch master updated: fix callBackend


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] branch master updated: fix callBackend when response is null/undefined
Date: Tue, 23 May 2017 13:40:04 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

The following commit(s) were added to refs/heads/master by this push:
     new 039ab7ba fix callBackend when response is null/undefined
039ab7ba is described below

commit 039ab7baef6e1b3a32bd3c4e798672f7626d7807
Author: Florian Dold <address@hidden>
AuthorDate: Tue May 23 13:41:52 2017 +0200

    fix callBackend when response is null/undefined
---
 src/wxApi.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wxApi.ts b/src/wxApi.ts
index f06ab69a..b74cb9eb 100644
--- a/src/wxApi.ts
+++ b/src/wxApi.ts
@@ -50,7 +50,7 @@ export function getReserveCreationInfo(baseUrl: string,
 export async function callBackend(type: string, detail?: any): Promise<any> {
   return new Promise<any>((resolve, reject) => {
     chrome.runtime.sendMessage({ type, detail }, (resp) => {
-      if (resp.error) {
+      if (resp && resp.error) {
         reject(resp);
       } else {
         resolve(resp);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]