DEV: lint file

This commit is contained in:
Régis Hanol 2019-12-13 22:37:19 +01:00
parent 1309262569
commit 5f1e346e16

View File

@ -578,9 +578,10 @@ export default createWidget("post-menu", {
if (state.readers.length) { if (state.readers.length) {
const remaining = state.totalReaders - state.readers.length; const remaining = state.totalReaders - state.readers.length;
const description = remaining > 0 const description =
? "post.actions.people.read_capped" remaining > 0
: "post.actions.people.read"; ? "post.actions.people.read_capped"
: "post.actions.people.read";
const count = remaining > 0 ? remaining : state.totalReaders; const count = remaining > 0 ? remaining : state.totalReaders;
contents.push( contents.push(
@ -596,9 +597,10 @@ export default createWidget("post-menu", {
if (state.likedUsers.length) { if (state.likedUsers.length) {
const remaining = state.total - state.likedUsers.length; const remaining = state.total - state.likedUsers.length;
const description = remaining > 0 const description =
? "post.actions.people.like_capped" remaining > 0
: "post.actions.people.like"; ? "post.actions.people.like_capped"
: "post.actions.people.like";
const count = remaining > 0 ? remaining : state.total; const count = remaining > 0 ? remaining : state.total;
contents.push( contents.push(