mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-18 23:04:30 +08:00
fix: error when loading account page and quickly navigating to another page (@fehmer) (#5555)
This commit is contained in:
parent
4f29aa55aa
commit
ea650278ea
1 changed files with 6 additions and 3 deletions
|
|
@ -22,9 +22,12 @@ export function init(
|
|||
}
|
||||
|
||||
function update(calendar?: MonkeyTypes.TestActivityCalendar): void {
|
||||
const container = document.querySelector(
|
||||
"#testActivity .activity"
|
||||
) as HTMLElement;
|
||||
const container = document.querySelector("#testActivity .activity");
|
||||
|
||||
if (container === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
container.innerHTML = "";
|
||||
|
||||
if (calendar === undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue