removed type cast

This commit is contained in:
Miodec 2023-06-27 23:29:01 +02:00
parent 03facf7e8f
commit 5e34cecd9f

View file

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