Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
return promise message when resending two factor sms
Browse files Browse the repository at this point in the history
  • Loading branch information
kwgithubusername committed Jan 27, 2016
1 parent 433dfe8 commit 34ac705
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function resendTwoFactorSms(user_guid, success) {
api_code : API.API_CODE
};

var successCallback = function(obj) { success(); return obj;}
var successCallback = function(obj) {if (obj.success) {success();}
return obj.message;
}

var handleError = function (e) {
var errMsg = e.responseJSON && e.responseJSON.initial_error ?
Expand Down

0 comments on commit 34ac705

Please sign in to comment.