From 54484e88533993c81f5c9df19a0b4ba3206bb321 Mon Sep 17 00:00:00 2001 From: doubaniux Date: Mon, 7 Dec 2020 15:47:49 +0100 Subject: [PATCH] fix enum value type inconsistency --- common/static/js/detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/static/js/detail.js b/common/static/js/detail.js index 9b14f98a..a4548c3a 100644 --- a/common/static/js/detail.js +++ b/common/static/js/detail.js @@ -75,7 +75,7 @@ $(document).ready( function() { }); // hide rating star when select wish - const WISH_CODE = 1; + const WISH_CODE = "wish"; if ($("#statusSelection input[type='radio']:checked").val() == WISH_CODE) { $(".mark-modal .rating-star-edit").hide(); }