diff --git a/src/templates/users/settings/billing.pug b/src/templates/users/settings/billing.pug index e11965f..1cb0069 100644 --- a/src/templates/users/settings/billing.pug +++ b/src/templates/users/settings/billing.pug @@ -59,7 +59,13 @@ script. .done(function() { window.location.reload(); }) - .fail(function() { + .fail(function(err) { + if (err.status == 403) { + /* This happens when we are no longer logged in properly, so just refresh the + * page to get a proper status. */ + window.location.reload(); + return; + } alert('Unable to update subscription, please check your internet connection.'); }) ;