From ab726811f92dc750275e7a764cdd1f38ee448b76 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 9 Dec 2020 15:01:17 +0100 Subject: [PATCH] Fix race condition --- www/profile/inner.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/profile/inner.js b/www/profile/inner.js index 8754de233..95b5c5031 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -282,8 +282,7 @@ define([ notifications: data.notifications }, function (err, obj) { if (obj && obj.error) { return void UI.warn(Messages.error); } - $button.attr('disabled', 'disabled').append(Messages.profile_friendRequestSent); - addCancel(); + //$button.attr('disabled', 'disabled').append(Messages.profile_friendRequestSent); }); }); };