From e98456f149381aac8280e10be0a5ca5a6d52bd0d Mon Sep 17 00:00:00 2001
From: FifthWit <fifthwitbusiness@gmail.com>
Date: Thu, 30 Jan 2025 10:51:24 -0600
Subject: fixed eslint issues with using == isntead of ===

---
 frontend/src/components/RankingEntry.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'frontend/src/components/RankingEntry.tsx')

diff --git a/frontend/src/components/RankingEntry.tsx b/frontend/src/components/RankingEntry.tsx
index 26bae2b..f45ca35 100644
--- a/frontend/src/components/RankingEntry.tsx
+++ b/frontend/src/components/RankingEntry.tsx
@@ -22,7 +22,7 @@ const RankingEntry: React.FC<RankingEntryProps> = prop => {
           <Link to={`/users/${prop.curRankingData.user.steam_id}`}>
             <img
               src={prop.curRankingData.user.avatar_link}
-              alt={`${prop.curRankingData.user.user_name}'s profile picture`}
+              alt={`${prop.curRankingData.user.user_name}'s Avatar`}
             ></img>
             <span>{prop.curRankingData.user.user_name}</span>
           </Link>
@@ -34,10 +34,10 @@ const RankingEntry: React.FC<RankingEntryProps> = prop => {
     return (
       <div className="leaderboard-entry">
         <span>
-          {prop.currentLeaderboardType ==
+          {prop.currentLeaderboardType ===
           RankingCategories.rankings_singleplayer
             ? prop.curRankingData.sp_rank
-            : prop.currentLeaderboardType ==
+            : prop.currentLeaderboardType ===
                 RankingCategories.rankings_multiplayer
               ? prop.curRankingData.mp_rank
               : prop.curRankingData.overall_rank}
@@ -49,10 +49,10 @@ const RankingEntry: React.FC<RankingEntryProps> = prop => {
           </Link>
         </div>
         <span>
-          {prop.currentLeaderboardType ==
+          {prop.currentLeaderboardType ===
           RankingCategories.rankings_singleplayer
             ? prop.curRankingData.sp_score
-            : prop.currentLeaderboardType ==
+            : prop.currentLeaderboardType ===
                 RankingCategories.rankings_multiplayer
               ? prop.curRankingData.mp_score
               : prop.curRankingData.overall_score}
-- 
cgit v1.2.3

