Skip to content

Commit

Permalink
Fix end of campaing reclaim
Browse files Browse the repository at this point in the history
  • Loading branch information
khmyznikov committed Aug 4, 2023
1 parent fae6bc3 commit 22e1d4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/pwabuilder/src/script/pages/qualification/app-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ export class AppToken extends LitElement {
this.siteURL = "";
}
}

let dataRegisted: boolean = await this.checkIfLoggedIn(site || '');

// if(this.userAccount.loggedIn && !this.siteURL){
// this.claimToken();
// }
if(this.userAccount.loggedIn && !this.tokensCampaignRunning){
this.claimToken();
}


if (site && this.validURL) {
Expand Down Expand Up @@ -677,7 +677,7 @@ export class AppToken extends LitElement {
<div id="over-main-content">
${!this.errorGettingToken? html `
${this.userAccount.loggedIn ? html`
<sl-button class="primary" @click=${this.reclaimToken}>Reclaim code</sl-button>
<sl-button class="primary" @click=${this.reclaimToken} .loading="${this.claimTokenLoading}" .disabled="${this.claimTokenLoading}">Reclaim code</sl-button>
` : html`
<sl-button class="primary sign-in-button final-button" @click=${this.reclaimToken}>
<img class="sign-in-logo" src="assets/new/colorful-logo.svg" alt="Color Windows Logo" />
Expand Down

0 comments on commit 22e1d4e

Please sign in to comment.