diff options
| author | Nidboj132 <28981031+Nidboj132@users.noreply.github.com> | 2023-12-23 14:09:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-23 14:09:35 +0100 |
| commit | 62c116189a1b66667f5843e3a069add05c2487f8 (patch) | |
| tree | f051e5937b781ae3d67ef9854c2b3285158c3270 /frontend/src/components/pages/profile.js | |
| parent | fix: sql typo discussions delete (#142) (diff) | |
| download | lphub-62c116189a1b66667f5843e3a069add05c2487f8.tar.gz lphub-62c116189a1b66667f5843e3a069add05c2487f8.tar.bz2 lphub-62c116189a1b66667f5843e3a069add05c2487f8.zip | |
feat: discussion page (#137)
Diffstat (limited to 'frontend/src/components/pages/profile.js')
| -rw-r--r-- | frontend/src/components/pages/profile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/pages/profile.js b/frontend/src/components/pages/profile.js index 041f585..7c45320 100644 --- a/frontend/src/components/pages/profile.js +++ b/frontend/src/components/pages/profile.js | |||
| @@ -129,7 +129,7 @@ function UpdateProfile(){ | |||
| 129 | method: 'POST', | 129 | method: 'POST', |
| 130 | headers: {Authorization: token} | 130 | headers: {Authorization: token} |
| 131 | }).then(r=>r.json()) | 131 | }).then(r=>r.json()) |
| 132 | .then(d=>d.success?window.location.reload():window.alert(`Error: ${d.message}`)) | 132 | .then(d=>d.success?window.alert("profile updated"):window.alert(`Error: ${d.message}`)) |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | function TimeAgo(date) { | 135 | function TimeAgo(date) { |
| @@ -348,7 +348,7 @@ return ( | |||
| 348 | <span>{r.name}</span> | 348 | <span>{r.name}</span> |
| 349 | <span style={{ display: "grid" }}>{record.scores[i].score_count}</span> | 349 | <span style={{ display: "grid" }}>{record.scores[i].score_count}</span> |
| 350 | <span style={{ display: "grid" }}>{record.scores[i].score_count-record.map_wr_count}</span> | 350 | <span style={{ display: "grid" }}>{record.scores[i].score_count-record.map_wr_count}</span> |
| 351 | <span>{TicksToTime(record.scores[i].score_time)}</span> | 351 | <span style={{ display: "grid" }}>{TicksToTime(record.scores[i].score_time)}</span> |
| 352 | <span> </span> | 352 | <span> </span> |
| 353 | {i===0?<span>#{record.placement}</span>:<span> </span>} | 353 | {i===0?<span>#{record.placement}</span>:<span> </span>} |
| 354 | <span>{record.scores[i].date.split("T")[0]}</span> | 354 | <span>{record.scores[i].date.split("T")[0]}</span> |