diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index b515cc6..1234fea 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -20,6 +20,8 @@ jobs: node-version: 20 - name: Install Dependencies run: npm install + - name: Copy ENV variables + run: cp -f src/environments/environment.prod.ts src/environments/environment.ts - name: Build project run: npm run build - name: Publish to Cloudflare Pages diff --git a/src/app/@api/collection.api.ts b/src/app/@api/collection.api.ts index 82cce63..52da99a 100644 --- a/src/app/@api/collection.api.ts +++ b/src/app/@api/collection.api.ts @@ -56,9 +56,6 @@ export class CollectionApi extends BaseApi { public update = (req: WenRequest): Observable => this.request(WEN_FUNC.updateCollection, req); - public approve = (req: WenRequest): Observable => - this.request(WEN_FUNC.approveCollection, req); - public reject = (req: WenRequest): Observable => this.request(WEN_FUNC.rejectCollection, req); } diff --git a/src/app/components/collection/components/collection-highlight-card/collection-highlight-card.component.ts b/src/app/components/collection/components/collection-highlight-card/collection-highlight-card.component.ts index d9e50f5..1eaff8a 100644 --- a/src/app/components/collection/components/collection-highlight-card/collection-highlight-card.component.ts +++ b/src/app/components/collection/components/collection-highlight-card/collection-highlight-card.component.ts @@ -57,9 +57,11 @@ export class CollectionHighlightCardComponent implements OnDestroy { this.collections.forEach((collection) => { const space$ = new BehaviorSubject(undefined); this.spaces$.push(space$); - this.subscriptions$.push( - this.spaceApi.listen(collection?.space).pipe(untilDestroyed(this)).subscribe(space$), - ); + if (collection?.space) { + this.subscriptions$.push( + this.spaceApi.listen(collection?.space).pipe(untilDestroyed(this)).subscribe(space$), + ); + } }); } diff --git a/src/app/pages/collection/pages/collection/collection-about/collection-about.component.html b/src/app/pages/collection/pages/collection/collection-about/collection-about.component.html index 4cf058f..c100366 100644 --- a/src/app/pages/collection/pages/collection/collection-about/collection-about.component.html +++ b/src/app/pages/collection/pages/collection/collection-about/collection-about.component.html @@ -17,11 +17,7 @@ nzType="primary" nzSize="default" class="w-full" - *ngIf=" - (isGuardianWithinSpace$ | async) && - !helper.isMinted(data.collection$ | async) && - (data.collection$ | async)?.approved === true - " + *ngIf="(isGuardianWithinSpace$ | async) && !helper.isMinted(data.collection$ | async)" [disabled]="helper.mintInProgress(data.collection$ | async)" (click)="isMintOnNetorkVisible = true" > @@ -33,15 +29,12 @@ >...) - Mint Collection + Mint & Publish Collection
Collection is not yet migrated to the decentralized network. diff --git a/src/app/pages/collection/pages/collection/collection.page.html b/src/app/pages/collection/pages/collection/collection.page.html index b6d0c39..7fb5b0a 100644 --- a/src/app/pages/collection/pages/collection/collection.page.html +++ b/src/app/pages/collection/pages/collection/collection.page.html @@ -69,18 +69,6 @@

{{ (data.collection$ | async)?.name }}

- - -