diff options
| author | Nidboj132 <28981031+Nidboj132@users.noreply.github.com> | 2023-11-16 20:26:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-16 20:26:21 +0100 |
| commit | dcdbe09670ae2923badbb4120c2334c063176af3 (patch) | |
| tree | 7fd1df7f3063ff20d0568d2996e55c10f30b8c19 /frontend/src/components/sidebar.js | |
| parent | feat: error check on 0 portal 0 tick record (#133) (diff) | |
| download | lphub-dcdbe09670ae2923badbb4120c2334c063176af3.tar.gz lphub-dcdbe09670ae2923badbb4120c2334c063176af3.tar.bz2 lphub-dcdbe09670ae2923badbb4120c2334c063176af3.zip | |
fix: crash (#54)
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/components/sidebar.js | 2 |
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> |