Fix race condition

pull/1/head
yflory 4 years ago
parent 892fca7d99
commit ab726811f9

@ -282,8 +282,7 @@ define([
notifications: data.notifications notifications: data.notifications
}, function (err, obj) { }, function (err, obj) {
if (obj && obj.error) { return void UI.warn(Messages.error); } if (obj && obj.error) { return void UI.warn(Messages.error); }
$button.attr('disabled', 'disabled').append(Messages.profile_friendRequestSent); //$button.attr('disabled', 'disabled').append(Messages.profile_friendRequestSent);
addCancel();
}); });
}); });
}; };

Loading…
Cancel
Save