Skip to content

Commit

Permalink
fix: Math.random 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
han-kimm committed Jan 4, 2024
1 parent 9fbeb4c commit a77298d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,12 @@ const Header = () => {
}
}
})();
}, [dashboard]);
}, [dashboard, router.query]);

return (
<header className={styles.header}>
<div className={styles.grid__title}>
{title ? (
<h1 className={styles.boardname}>{title.length > 20 ? title.slice(0, 20) + "..." : title}</h1>
) : (
<h1 className={styles.welcome_message}>
{WELCOME_MESSAGE[Math.floor(Math.random() * WELCOME_MESSAGE.length)]}
</h1>
)}
{title ? <h1 className={styles.boardname}>{title.length > 20 ? title.slice(0, 20) + "..." : title}</h1> : null}
</div>
{isOwner && (
<>
Expand Down

0 comments on commit a77298d

Please sign in to comment.