Browse Source

Optional chaining to try to fix bug

kirkleon 4 years ago
parent
commit
4091e25e11

+ 1 - 1
client/src/components/screens/GameSummary/ScoreBoard/ScoreBoard.jsx

@@ -36,7 +36,7 @@ export const PlayerScoreTile = ({ name, guesses, totalScore, winner }) => (
               </span>
               <span
                 className={styles.flag}
-                title={country && iso.whereAlpha2(country).country}
+                title={country && iso.whereAlpha2(country)?.country}
               >
                 {flagLookup(country)}
               </span>