From 67b8504bb8c24ca4087cc8223922cab2feda697b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 26 Jul 2022 15:15:33 -0500 Subject: [PATCH] If in an XMPP-aware app, move command execution along --- views/credit_cards.slim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/credit_cards.slim b/views/credit_cards.slim index 876901c426013530ad382ec19bf0f2be3e90d869..98f369868743707993eb2960d7ddd8746848eb9a 100644 --- a/views/credit_cards.slim +++ b/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) {