Skip to content

Redundant call to localStorage for settingGithubId #10

@aitchkhan

Description

@aitchkhan

const [githubId, setGithubId] = useState(() => {
const storedId = localStorage.getItem("github_Id");
return storedId ? JSON.parse(storedId) : null;
});

We don't need to call

localStorage.get()

again to set the github id.

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