Skip to content

Commit 77ec351

Browse files
committed
refactor: remove login from card
1 parent 3ad4e54 commit 77ec351

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/agent-webapp/src/components/user-card.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,8 @@ export class UserCard extends LitElement {
4343
}
4444
};
4545

46-
protected renderLogin = () => html`
47-
<h1>Contoso Pizza Membership Registration</h1>
48-
<reg-auth></reg-auth>
49-
`;
50-
5146
protected renderError = () => html`<p class="error">
52-
Error during registration. Please retry later.
47+
Error during while loading your membership details. Please retry later.
5348
</p>`;
5449

5550
protected renderRegistrationCard = () => html`
@@ -105,8 +100,6 @@ export class UserCard extends LitElement {
105100
return this.isLoading
106101
? this.renderLoading()
107102
: !this.username
108-
? this.renderLogin()
109-
: this.hasError
110103
? this.renderError()
111104
: this.renderRegistrationCard();
112105
}

0 commit comments

Comments
 (0)