Skip to content

Bug in if statement part2/countries/components/Content.js #65

@Smcelli

Description

@Smcelli

If countries.length is 10 or 2, then countries[0] will be displayed as if it is the only country in the array. Change line 11 to
"} else if ((countries.length > 1 || countries.length === 0) {"
will avoid this, since countries.length >10 is handled in the previous if statement. The extra condition of "&& countries.length <10" is not needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions