fix: show errors when user delete fails

This commit is contained in:
Barış Soner Uşaklı
2020-12-09 10:07:40 -05:00
parent dd9ed23631
commit ff2aa17bbc

View File

@@ -45,6 +45,8 @@ define('accounts/delete', ['api', 'bootbox'], function (api) {
if (typeof callback === 'function') { if (typeof callback === 'function') {
return callback(); return callback();
} }
}).catch(function (err) {
app.alertError(err);
}); });
}); });
} }