From 919abaa0eb246bf63b4d84583e30c19a8eccd8e4 Mon Sep 17 00:00:00 2001 From: Steffen Date: Thu, 17 Sep 2020 10:47:13 +0200 Subject: [PATCH] fix tooltip --- src/components/Menu.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 0441e6f..4aada68 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -7,7 +7,9 @@ v-if="session.sessionId" @click="leaveSession" :title=" - `${session.playerCount} other players in this session (${session.ping}ms latency)` + `${session.playerCount} other players in this session${ + session.ping ? ' (' + session.ping + 'ms latency)' : '' + }` " >