Skip to content

Commit

Permalink
fix: lint errors and proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima committed Jan 7, 2025
1 parent 4264a3f commit 5ac9cf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2025-01-07T08:32:23.225Z\n"
"PO-Revision-Date: 2025-01-07T08:32:23.226Z\n"
"POT-Creation-Date: 2025-01-07T11:04:56.155Z\n"
"PO-Revision-Date: 2025-01-07T11:04:56.155Z\n"

msgid "Never"
msgstr "Never"
Expand Down
7 changes: 4 additions & 3 deletions src/layout/VerifyEmailWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import React from 'react'

export function VerifyEmailWarning({ config }) {
const enforceVerifiedEmail =
config?.system?.settings?.enforceVerifiedEmail || false
const emailVerified =
config.system?.settings?.settings?.enforceVerifiedEmail || false
const emailVerified = config.currentUser?.emailVerified || false

if (enforceVerifiedEmail && !emailVerified) {
return (
Expand All @@ -31,7 +30,9 @@ VerifyEmailWarning.propTypes = {
}),
system: PropTypes.shape({
settings: PropTypes.shape({
enforceVerifiedEmail: PropTypes.bool,
settings: PropTypes.shape({
enforceVerifiedEmail: PropTypes.bool,
}),
}),
}),
}).isRequired,
Expand Down

0 comments on commit 5ac9cf2

Please sign in to comment.