Skip to content

Commit ed673e6

Browse files
authored
fix: typo in backend success response (#1010)
1 parent fed4675 commit ed673e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/server/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h2>Try a Sample Request</h2>
175175
`<strong>API Response:</strong> ${data.status} ${data.statusText}<br/><strong>Content:</strong> ${data.responseText}`
176176
);
177177
};
178-
const susccess_response = (data) => {
178+
const success_response = (data) => {
179179
$(".api-response").html(
180180
`<strong>API Response:</strong> OK<br/><strong>Content:</strong> ${JSON.stringify(
181181
data,
@@ -190,7 +190,7 @@ <h2>Try a Sample Request</h2>
190190
const form = $("form.ajax-post");
191191
$.post(form.attr("action"), form.serialize())
192192
.fail(error_response)
193-
.done(susccess_response);
193+
.done(success_response);
194194
return false;
195195
});
196196
});

0 commit comments

Comments
 (0)