From 76f0fea9da08417c2abf2cfe8d9f1ef3e81fa2c0 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 10 Jan 2024 04:52:30 +0000 Subject: [PATCH] Update content of files --- data/web/fragment.com/js/auction.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js index a5cb43cd86..0fdf6e5dfc 100644 --- a/data/web/fragment.com/js/auction.js +++ b/data/web/fragment.com/js/auction.js @@ -1048,7 +1048,9 @@ var Assets = { username: username, auction: true }, function(result) { - if (result.confirm_message) { + if (result.error) { + return showAlert(result.error); + } else if (result.confirm_message) { showConfirm(result.confirm_message, function() { doPutToAuction(); }, result.confirm_button); @@ -1148,7 +1150,9 @@ var Assets = { username: username, auction: false }, function(result) { - if (result.confirm_message) { + if (result.error) { + return showAlert(result.error); + } else if (result.confirm_message) { showConfirm(result.confirm_message, function() { doSellUsername(); }, result.confirm_button);