openvibers/openvibe.today Commits

The home says '1 channel', not '1 channels' (#79)

OP OpenVibers committed 11 days ago · 96c3f3facf · 1 file, +1 −1

Changes

ddiff --git a/server/views/index.js b/server/views/index.js
iindex 034011d..1b37cab 100644
---- a/server/views/index.js
++++ b/server/views/index.js
@@@ -160,7 +160,7 @@ function home({ upcoming = [], holidays = [], now = Date.now() } = {}) {
proof: [
{ value: live.length, label: 'live now' },
{ value: upcoming.length, label: 'coming up' },
-- { value: channels.size, label: 'channels' },
++ { value: channels.size, label: channels.size === 1 ? 'channel' : 'channels' },
].filter((p) => p.value),
});
// Real first (the owner, 10-31: empty sections made the rooms look unfinished): Coming up shows only with something in