Fix bug (#3012) rizwanmustafa

* Fix bug

* base 10

Co-authored-by: Miodec <bartnikjack@gmail.com>
This commit is contained in:
Rizwan Mustafa 2022-05-24 01:10:04 +05:00 committed by GitHub
parent 48fffe1b99
commit 44419bdb60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,8 +122,8 @@ el.find(".timeGroup .button").on("click", (e) => {
});
el.find(".quoteGroup .button").on("click", (e) => {
let len: number | number[] = ($(e.currentTarget).attr("quote") ??
0) as number;
let len: number | number[] =
parseInt($(e.currentTarget).attr("quote") as string, 10) ?? 0;
if (len == -2) {
// UpdateConfig.setQuoteLength(-2, false, e.shiftKey);
hidePopup();