From 0c6b2b0dfb96451f4487a7c6088b02c2fe092a47 Mon Sep 17 00:00:00 2001 From: James Murdza Date: Fri, 6 Sep 2024 14:19:14 -0700 Subject: [PATCH] feat: increase the per user limit of generations to 1000 --- frontend/components/editor/generate.tsx | 2 +- frontend/components/ui/userButton.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/components/editor/generate.tsx b/frontend/components/editor/generate.tsx index bfa7662..b1a60c9 100644 --- a/frontend/components/editor/generate.tsx +++ b/frontend/components/editor/generate.tsx @@ -59,7 +59,7 @@ export default function GenerateInput({ }: { regenerate?: boolean }) => { - if (user.generations >= 10) { + if (user.generations >= 1000) { toast.error("You reached the maximum # of generations.") return } diff --git a/frontend/components/ui/userButton.tsx b/frontend/components/ui/userButton.tsx index a7bd392..3391dc9 100644 --- a/frontend/components/ui/userButton.tsx +++ b/frontend/components/ui/userButton.tsx @@ -42,13 +42,13 @@ export default function UserButton({ userData }: { userData: User }) {
- AI Usage: {userData.generations}/10 + AI Usage: {userData.generations}/1000