Skip to content

Can access "travel" page with insufficient approved hours #57

@pakdad-mousavi

Description

@pakdad-mousavi

If a user is fast enough, they can press the "travel" button in the bottom navigation bar after refreshing the page and successfully navigate there:

Image

I've navigated to this page using this method repeatedly, and I have 0 approved hours.

After a brief code review, I'm pretty sure this can be solved by initializing the state variable travelLocked in BottonNavigation.svelte to true instead of false.

The API call getHourCounts() in the onMount hook is async and takes a while to load, meaning that there's a small delay before the travel tab is locked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions