If in an XMPP-aware app, move command execution along

Stephen Paul Weber created

Change summary

views/credit_cards.slim | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

views/credit_cards.slim 🔗

@@ -76,7 +76,9 @@ javascript:
 					}).then(function(response) {
 						instance._mainView.hideLoadingIndicator();
 
-						if(response.status !== 200) {
+						if(response.status === 200) {
+							if (xmpp_xep0050) xmpp_xep0050.execute();
+						} else {
 							return Promise.reject(response);
 						}
 					}).catch(function(err) {