TryGhost/Ghost

View on GitHub
apps/portal/src/components/pages/EmailSuppressedPage.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function EmailSuppressedPage has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function EmailSuppressedPage() {
    const {brandColor, lastPage, onAction, action, site, t} = useContext(AppContext);

    useEffect(() => {
        if (['removeEmailFromSuppressionList:success'].includes(action)) {
Severity: Major
Found in apps/portal/src/components/pages/EmailSuppressedPage.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status