Skip to content

Commit e0d599b

Browse files
committed
name good
1 parent eb7c50e commit e0d599b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/HomePage/HomePage.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,17 @@ const HomePage = () => {
4747
navigate(0);
4848
};
4949

50+
const capitalizeFirstLetter = (string) => {
51+
return string.charAt(0).toUpperCase() + string.slice(1);
52+
};
53+
5054
return (
5155
<div className={styles.container}>
5256
<Header />
5357
<button onClick={handleLogOut} className={styles.logOutButton}>
5458
Log Out
5559
</button>
56-
<h1>Welcome, {username}!</h1>
60+
<h1>Welcome, {capitalizeFirstLetter(username)}!</h1>
5761
<div className={styles.gamesList}>
5862
{games.map((game) => (
5963
<div key={game.id} className={styles.gameItem}>

0 commit comments

Comments
 (0)