Skip to content

Commit

Permalink
Merge pull request #4051 from QuantiModo/feature/no-response
Browse files Browse the repository at this point in the history
Handle no response
  • Loading branch information
mikepsinn authored Sep 22, 2020
2 parents 683d60d + 45d4bd7 commit b3b33d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/js/qmHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5829,6 +5829,15 @@ var qm = {
})
qm.api.postToQuantiModo(body, 'v3/trackingReminderNotifications',
function(response){
if(!response){
var err = "No response from postToQuantiModo(body, 'v3/trackingReminderNotifications";
if(errorHandler){
errorHandler(err);
return;
} else {
throw err;
}
}
var measurements = response.measurements || response.data.measurements;
if(measurements){qm.measurements.addMeasurementsToMemory(measurements);}
var trackingReminderNotifications = response.trackingReminderNotifications || response.data.trackingReminderNotifications;
Expand Down

0 comments on commit b3b33d3

Please sign in to comment.