fixed bug caused by triple equals

This commit is contained in:
Miodec 2023-06-27 23:22:21 +02:00
parent a6b59bb7da
commit 03facf7e8f

View file

@ -409,7 +409,7 @@ $("#popups").on("click", "#quoteSearchPopup #toggleShowFavorites", (e) => {
});
$(".pageTest").on("click", "#testConfig .quoteLength .textButton", (e) => {
const len = $(e.currentTarget).attr("quoteLength") ?? (0 as number);
const len = parseInt(($(e.currentTarget).attr("quoteLength") as string) ?? 0);
if (len === -2) {
show();
}