summaryrefslogtreecommitdiff
path: root/web/static/dartboat.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r--web/static/dartboat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js
index 8716185..13a5da4 100644
--- a/web/static/dartboat.js
+++ b/web/static/dartboat.js
@@ -98,15 +98,15 @@ function hidePlayerInfo(n) {
}
function updatePlayerName(n, ptr) {
- $(`#p${n}-name`).textContent = UTF8ToString(ptr);
+ $(`#p${n}-name`).textContent = ptr && UTF8ToString(ptr);
}
function updatePlayerRem(n, ptr) {
- $(`#p${n}-rem`).textContent = UTF8ToString(ptr);
+ $(`#p${n}-rem`).textContent = ptr && UTF8ToString(ptr);
}
function updatePlayerSugg(n, ptr) {
- $(`#p${n}-sugg`).textContent = UTF8ToString(ptr);
+ $(`#p${n}-sugg`).textContent = ptr && UTF8ToString(ptr);
}
function updatePlayerAvg(n, avg) {