Skip to content

Commit 4a4e6f3

Browse files
authored
Merge pull request #1210 from MarechJ/fix/player-profile-null-country
Fix error when country is null
2 parents 88181ce + b31838f commit 4a4e6f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rcongui/src/pages/records/players/[playerId]/[detail]/profile-details.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ const AccountCard = ({ profile }) => {
160160
<Box sx={{ color: (theme) => theme.palette.text.secondary }}>
161161
Country:
162162
</Box>
163-
<Box><CountryFlag country={account["country"]} /> {account["country"]}</Box>
163+
<Box>{account["country"]
164+
? <><CountryFlag country={account["country"]} /> {account["country"]}</>
165+
: "-"
166+
}</Box>
164167
</ListItem>
165168
<ListItem sx={{ display: "flex", justifyContent: "space-between" }}>
166169
<Box sx={{ color: (theme) => theme.palette.text.secondary }}>

0 commit comments

Comments
 (0)