Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbradford committed Jan 25, 2024
1 parent 1cce215 commit 746a418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/CreateFormInner.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { InnerChat } from '@/components/InnerChat';
import { Form } from '@/models';
import { getFormFromSupabase } from '@/utils';
import { createClientComponentClient } from '@supabase/auth-helpers-nextjs';
Expand All @@ -23,7 +24,7 @@ export function CreateFormInner(props: { formId: string; }) {
}
});
}
}, []); // The empty array ensures this effect runs only once on mount
}, []);
return form ? (
<InnerChat form={form} supabase={supabase} />
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/components/InnerChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function InnerChat(props: { form: Form; supabase: SupabaseClient<Database
ref={inputRef} />
<button
className="ml-2 py-2 px-4 bg-rose-400 hover:bg-rose-300 text-white rounded-lg disabled:bg-gray-300"
onClick={() => handleSubmit(inputValue)}
onClick={handleSubmit(inputValue)}
disabled={isWaiting || isDone}
>
{isWaiting ? (
Expand Down

0 comments on commit 746a418

Please sign in to comment.