From a32c3d9641651e4d993acf9544188e05032f0e1d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 2 Dec 2020 11:06:44 +0100 Subject: [PATCH] cleanup --- src/client/ClientView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/ClientView.js b/src/client/ClientView.js index 7de875d..98b309c 100644 --- a/src/client/ClientView.js +++ b/src/client/ClientView.js @@ -17,9 +17,9 @@ limitations under the License. import {TemplateView} from "../utils/TemplateView.js"; function formatPlatforms(platforms) { - return platforms.reduce((str, p, i) => { + return platforms.reduce((str, p, i, all) => { const first = i === 0; - const last = i === platforms.length - 1; + const last = i === all.length - 1; return str + (first ? "" : last ? " & " : ", ") + p; }, ""); }