Commit 5b35f0e4fbb7d330857912ea54eab9e07bae6220
1 parent
75d31c55e3
Exists in
master
default rc is 40
Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff
partner-komodo.js
... | ... | @@ -126,9 +126,12 @@ function topupAdvice(task) { |
126 | 126 | } |
127 | 127 | |
128 | 128 | function processPartnerResponse(resObj, task) { |
129 | - let st24Rc = '68'; | |
129 | + let st24Rc = '40'; | |
130 | 130 | |
131 | - if (komodoRc[resObj.rc]) { | |
131 | + if (!resObj || !resObj.rc) { | |
132 | + st24Rc = '68'; | |
133 | + } | |
134 | + else if (komodoRc[resObj.rc]) { | |
132 | 135 | st24Rc = komodoRc[resObj.rc]; |
133 | 136 | } |
134 | 137 | |
... | ... | @@ -173,4 +176,4 @@ function onReverseReport(request, response) { |
173 | 176 | |
174 | 177 | exports.start = start; |
175 | 178 | exports.topupRequest = topupRequest; |
176 | -exports.topupAdvice = topupAdvice; | |
177 | 179 | \ No newline at end of file |
180 | +exports.topupAdvice = topupAdvice; |