Skip to content

Commit

Permalink
Add validation to "enter" clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Dec 28, 2024
1 parent 280b834 commit 3791fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class HomeComponent implements OnInit {
}

openProfile() {
if (this.profileId) {
if (this.profileId && this.isValidNpub()) {
localStorage.setItem(this.STORAGE_KEY, this.profileId);
this.router.navigate(['/profile', this.profileId]);
}
Expand Down

0 comments on commit 3791fcd

Please sign in to comment.