removed unnecessary type

This commit is contained in:
Miodec 2022-05-04 01:36:35 +02:00
parent bf941ab02b
commit a03ef7dd84

View file

@ -27,11 +27,6 @@ ConfigEvent.subscribe((eventKey) => {
}
});
//todo remove when pace caret is converted to ts
type PaceCaretSettings = {
wpm: number;
};
export async function update(): Promise<void> {
let anim = false;
if ($(".pageTest #testModesNotice").text() === "") anim = true;
@ -97,9 +92,7 @@ export async function update(): Promise<void> {
) {
let speed = "";
try {
speed = ` (${Math.round(
(PaceCaret.settings as unknown as PaceCaretSettings).wpm
)} wpm)`;
speed = ` (${Math.round(PaceCaret.settings?.wpm ?? 0)} wpm)`;
} catch {}
$(".pageTest #testModesNotice").append(
`<div class="text-button" commands="commandsPaceCaret"><i class="fas fa-tachometer-alt"></i>${