We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb7c50e commit e0d599bCopy full SHA for e0d599b
src/pages/HomePage/HomePage.jsx
@@ -47,13 +47,17 @@ const HomePage = () => {
47
navigate(0);
48
};
49
50
+ const capitalizeFirstLetter = (string) => {
51
+ return string.charAt(0).toUpperCase() + string.slice(1);
52
+ };
53
+
54
return (
55
<div className={styles.container}>
56
<Header />
57
<button onClick={handleLogOut} className={styles.logOutButton}>
58
Log Out
59
</button>
- <h1>Welcome, {username}!</h1>
60
+ <h1>Welcome, {capitalizeFirstLetter(username)}!</h1>
61
<div className={styles.gamesList}>
62
{games.map((game) => (
63
<div key={game.id} className={styles.gameItem}>
0 commit comments