mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-11 22:51:35 +08:00
removed unnecessary type
This commit is contained in:
parent
bf941ab02b
commit
a03ef7dd84
1 changed files with 1 additions and 8 deletions
|
|
@ -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>${
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue