Skip to content

Async Typer UI - getRandomBetween() not behaving as expected because it's being called with strings #230

@nmpeterson

Description

@nmpeterson

const amountOfTimeToWait = getRandomBetween(typeMin, typeMax);

When passed to getRandomBetween() here, typeMin and typeMax are still strings taken directly from el.dataset. Not sure exactly how the function is treating these numeric strings under the hood, but it's not parsing them as ints:

image

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