Skip to content

checkConditional: a number comparison with a null response compares to 0 #1608

@tahini

Description

@tahini

The typeof value === 'number' case does no validate that the response is either a string or number, so a null value will convert the value to 0 and do the comparison with this value.

I think the condition to enter this block would be to make sure response is number or string and ignore any other type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions