aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/sidebar.js
diff options
context:
space:
mode:
authorNidboj132 <28981031+Nidboj132@users.noreply.github.com>2023-11-16 20:26:21 +0100
committerGitHub <noreply@github.com>2023-11-16 20:26:21 +0100
commitdcdbe09670ae2923badbb4120c2334c063176af3 (patch)
tree7fd1df7f3063ff20d0568d2996e55c10f30b8c19 /frontend/src/components/sidebar.js
parentfeat: error check on 0 portal 0 tick record (#133) (diff)
downloadlphub-dcdbe09670ae2923badbb4120c2334c063176af3.tar.gz
lphub-dcdbe09670ae2923badbb4120c2334c063176af3.tar.bz2
lphub-dcdbe09670ae2923badbb4120c2334c063176af3.zip
fix: crash (#54)
Diffstat (limited to 'frontend/src/components/sidebar.js')
-rw-r--r--frontend/src/components/sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/sidebar.js b/frontend/src/components/sidebar.js
index e587c3c..29859ab 100644
--- a/frontend/src/components/sidebar.js
+++ b/frontend/src/components/sidebar.js
@@ -184,7 +184,7 @@ return (
184 {searchData!==null?searchData.players.map((q,index)=> 184 {searchData!==null?searchData.players.map((q,index)=>
185 ( 185 (
186 <Link to={ 186 <Link to={
187 q.steam_id===profile.steam_id?`/profile`: 187 profile!==null&&q.steam_id===profile.steam_id?`/profile`:
188 `/users/${q.steam_id}` 188 `/users/${q.steam_id}`
189 } className='search-player' key={index}> 189 } className='search-player' key={index}>
190 <img src={q.avatar_link} alt='pfp'></img> 190 <img src={q.avatar_link} alt='pfp'></img>