Skip to content

Commit 5b52d16

Browse files
authored
fix: remove events when 200, no need to check response (#572)
1 parent 9207b46 commit 5b52d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/amplitude-client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ AmplitudeClient.prototype.sendEvents = function sendEvents() {
19161916
new Request(url, data, this.options.headers).send(function (status, response) {
19171917
scope._sending = false;
19181918
try {
1919-
if (status === 200 && response === 'success') {
1919+
if (status === 200) {
19201920
scope.removeEvents(maxEventId, maxIdentifyId, status, response);
19211921

19221922
// Update the event cache after the removal of sent events.

0 commit comments

Comments
 (0)