From 7094f5b552989d5b6da589f3b509d2f9fdc46af9 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 9 Aug 2023 23:49:50 +0200 Subject: [PATCH] Fix eslint --- lib/apollo.js | 2 +- lib/constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/apollo.js b/lib/apollo.js index 23b5be99..573d5e8e 100644 --- a/lib/apollo.js +++ b/lib/apollo.js @@ -148,7 +148,7 @@ function getClient (uri) { read (meAnonSats, { readField }) { if (typeof window === 'undefined') return null const itemId = readField('id') - return meAnonSats ?? Number(localStorage.getItem(`TIP-item:${itemId}`) || '0') + return meAnonSats ?? Number(window.localStorage.getItem(`TIP-item:${itemId}`) || '0') } } } diff --git a/lib/constants.js b/lib/constants.js index ffc7a4f3..3e3f09a9 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -43,7 +43,7 @@ module.exports = { OLD_ITEM_DAYS: 3, ANON_USER_ID: 27, ANON_POST_FEE: 1000, - ANON_COMMENT_FEE: 100, + ANON_COMMENT_FEE: 100 } export const OLD_ITEM_DAYS = 3