Skip to content

Commit 84d90ec

Browse files
committed
fix: Signup button sohwing even when logged in
1 parent 896e8d3 commit 84d90ec

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/app/components/navbar/navbar.component.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ <h1 class="text-xl font-bold ml-2 text-primary relative">
1919
[attr.aria-label]="'Primary Navigation'"
2020
></p-menubar>
2121

22-
<p-button
23-
*ngIf="!isAuthenticated && (enableSignUp$ | async)"
24-
routerLink="/login"
25-
[queryParams]="{ newUser: 'true' }"
26-
label="Sign Up"
27-
size="small"
28-
icon="pi pi-face-smile"
29-
class="ml-1"
30-
aria-label="Login"
31-
/>
22+
<ng-template *ngIf="(enableSignUp$ | async)">
23+
<p-button
24+
*ngIf="!isAuthenticated"
25+
routerLink="/login"
26+
[queryParams]="{ newUser: 'true' }"
27+
label="Sign Up"
28+
size="small"
29+
icon="pi pi-face-smile"
30+
class="ml-1"
31+
aria-label="Login"
32+
/>
33+
</ng-template>
3234

3335
<button
3436
pButton

0 commit comments

Comments
 (0)