Unirep/create-unirep-app

[frontend] load empty string id by default

Closed this issue · 0 comments

const id: string = localStorage.getItem('id') ?? ''

empty string will be consider an input of Identity
so it will automatically compute an id = new Identity('') which is not desired

It should handle the case if id = undefined