Skip to content

Resize localStorage array to accomodate for new questions #23

@seanprashad

Description

@seanprashad

Currently, if new questions are added here, then any user who visited the site prior to the addition will not be able to use the checkbox to mark off new questions as the array in their local storage won't have indexes for the new questions (ie. it will be short).

We should account for this and update the initialization to handle if the localStorage array already exists and differs in size, then we should create a new array, copy over the old values, and save it over the existing array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions