Skip to content

Commit

Permalink
feat: change lifehash to sparrow recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
debeldami committed Jan 6, 2025
1 parent 62d0313 commit f2dd772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/secret-item/secret-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export class SecretItemComponent implements OnInit {

this.getWalletsFromSecret()

const bytes = new Uint8Array(this.secret.fingerprint.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)))
const bytes = this.secret.fingerprint
? new Uint8Array(this.secret.fingerprint.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)))
: new Uint8Array()

this.lifehashData = await this.lifehashService.generateLifehash(bytes)
}
Expand Down

0 comments on commit f2dd772

Please sign in to comment.