Skip to content

Commit 7defb32

Browse files
committed
fix(quote-favorite): quote favorite button isn't hidden in result screen when logged out
1 parent 9c71143 commit 7defb32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/ts/test/result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ function updateQuoteFavorite(randomQuote: Quote | null): void {
921921
const icon = qs(".pageTest #result #favoriteQuoteButton .icon");
922922

923923
if (Config.mode !== "quote" || !isAuthenticated()) {
924-
icon?.getParent()?.hide();
924+
icon?.getParent()?.setStyle({ display: "none" });
925925
return;
926926
}
927927

0 commit comments

Comments
 (0)