Skip to content

Project Key Overwritten When Creating a Project in Different Browsers with the Same Wallet #139

@itailiors

Description

@itailiors

When a user creates a project in one browser (Browser A) and then goes to a different browser (Browser B) and recovers the wallet using the wallet words, fetches the projects, and creates a new project, an issue occurs. If the user returns to Browser A and attempts to create another project, the new project creation overrides the previously created project key instead of generating a new one. This leads to confusion and potential data loss as the system continues to build on the overridden project key.

Steps to Reproduce:

  1. In Browser A, create a new project.
  2. Switch to Browser B and recover the wallet using the wallet words.
  3. Fetch the projects and create a new project in Browser B.
  4. Return to Browser A and attempt to create another project.

Proposed Fixes:

  • Refetch Projects on Create Button: Add logic to refetch the projects before initiating the creation of a new project to ensure the latest project data is available. (the logic is already added in another PR I opened Fixes for issue 103 and 132 #136 for issue Created Project Not Visible Across Multiple Browsers #103 )
  • Double-Check Before Posting Data: Refactor the project creation process so that no data is posted until all necessary data is collected and verified. This includes a double-check to ensure that a project with the same key has not already been created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions