Fix eslint

This commit is contained in:
ekzyis 2023-08-09 23:49:50 +02:00
parent 76b4156ccb
commit 7094f5b552
2 changed files with 2 additions and 2 deletions

View File

@ -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')
}
}
}

View File

@ -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