Skip to content

Commit

Permalink
Merge pull request #153 from stefan0xC/revert-my-mistake
Browse files Browse the repository at this point in the history
revert patch to fix max collection check
  • Loading branch information
BlackDex authored Jan 18, 2024
2 parents b92f6ab + cfd6ef7 commit eb88710
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions patches/v2024.1.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ index baff9d1b68..25f99cb40a 100644
</div>
</div>
diff --git a/apps/web/src/app/vault/individual-vault/vault.component.ts b/apps/web/src/app/vault/individual-vault/vault.component.ts
index 964debb536..12b23f8888 100644
index 5ca857dae6..bc7568f5f4 100644
--- a/apps/web/src/app/vault/individual-vault/vault.component.ts
+++ b/apps/web/src/app/vault/individual-vault/vault.component.ts
@@ -188,11 +188,7 @@ export class VaultComponent implements OnInit, OnDestroy {
Expand All @@ -436,19 +436,6 @@ index 964debb536..12b23f8888 100644

const firstSetup$ = this.route.queryParams.pipe(
first(),
diff --git a/apps/web/src/app/vault/org-vault/vault-header/vault-header.component.ts b/apps/web/src/app/vault/org-vault/vault-header/vault-header.component.ts
index 9740705ae9..e000d3f10c 100644
--- a/apps/web/src/app/vault/org-vault/vault-header/vault-header.component.ts
+++ b/apps/web/src/app/vault/org-vault/vault-header/vault-header.component.ts
@@ -160,7 +160,7 @@ export class VaultHeaderComponent {
}

async addCollection() {
- if (this.organization.planProductType === ProductType.Free) {
+ if (this.organization.planProductType !== ProductType.Free) {
const collections = await this.collectionAdminService.getAll(this.organization.id);
if (collections.length === this.organization.maxCollections) {
this.showFreeOrgUpgradeDialog();
diff --git a/apps/web/src/app/vault/org-vault/vault.component.ts b/apps/web/src/app/vault/org-vault/vault.component.ts
index 4dd05b67c1..e6d9344261 100644
--- a/apps/web/src/app/vault/org-vault/vault.component.ts
Expand Down

0 comments on commit eb88710

Please sign in to comment.