Skip to content

Commit c6dcfa1

Browse files
authored
fix(profile): remove previous error message on page load (@fehmer) (#6731)
fixes #6729
1 parent 0b8ee9c commit c6dcfa1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/ts/pages/profile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { UserProfile } from "@monkeytype/contracts/schemas/users";
1010
import { PersonalBests } from "@monkeytype/contracts/schemas/shared";
1111

1212
function reset(): void {
13+
$(".page.pageProfile .error").addClass("hidden");
1314
$(".page.pageProfile .preloader").removeClass("hidden");
1415
$(".page.pageProfile .profile").html(`
1516
<div class="details none">

0 commit comments

Comments
 (0)