Skip to content

Commit

Permalink
Re-enable optional chain linting
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Jul 18, 2022
1 parent f18d74b commit 46101f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"rules": {
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-dynamic-delete": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/strict-boolean-expressions": "warn"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/models/User/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const views = {
// @ts-expect-error
byCurrency(doc) {
const notifs = doc.notifications
if (notifs && notifs.enabled && notifs.currencyCodes) {
if (notifs?.enabled && notifs.currencyCodes) {
const codes = notifs.currencyCodes
for (const currencyCode in codes) {
for (const hours in codes[currencyCode]) {
Expand Down

0 comments on commit 46101f7

Please sign in to comment.