Skip to content

Commit 997bdf7

Browse files
committed
Fix case sensitivity in profile filename matching on ProfilePage
1 parent 0a593ba commit 997bdf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ProfilesList.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
"ThunderShadows.json",
483483
"sriharshitha37.json",
484484
"revanthkumarJ.json",
485-
"Latika66.json",
485+
"latika66.json",
486486
"ChaitraTM.json",
487487
"jUsTtulika.json",
488488
"su-jin1425.json",

src/components/Profile/ProfilePage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const ProfilePage = () => {
2020
useEffect(() => {
2121
const fetchProfileData = async () => {
2222
try {
23-
const profileFile = profilesList.find((file) => file.replace('.json', '') === name);
23+
// Case-insensitive match for profile filename
24+
const profileFile = profilesList.find((file) => file.replace('.json', '').toLowerCase() === name.toLowerCase());
2425
if (!profileFile) {
2526
setProfileData(null);
2627
setLoading(false);

0 commit comments

Comments
 (0)