diff --git a/apps/settings/templates/settings/replay_storage_create.html b/apps/settings/templates/settings/replay_storage_create.html index c986b40e8..6521a730a 100644 --- a/apps/settings/templates/settings/replay_storage_create.html +++ b/apps/settings/templates/settings/replay_storage_create.html @@ -252,7 +252,7 @@ $(document).ready(function() { var name = $(id_field).attr('name'); data[name] = $(id_field).val(); }); - if (data['ENDPOINT'] !== '' && data['ENDPOINT'].indexOf('http') === -1) { + if (data['ENDPOINT'] && data['ENDPOINT'].indexOf('http') === -1) { var msg = "{% trans 'Endpoint need contain protocol, ex: http' %}"; $("#endpoint_error").html(msg); submitBtn.removeClass('disabled');