Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix build errors.

Ivan Vasilov24a245a228b9
diff --git a/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx b/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
index 907444a2a12..def81e023c6 100644
--- a/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
+++ b/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx
@@ -20,7 +20,7 @@ const AddNewFactorModal = ({ visible, onClose }: AddNewFactorModalProps) => {
const { data, mutate: enroll, isLoading: isEnrolling, reset } = useMfaEnrollMutation()
useEffect(() => {
- // reset has to be called because the state is kept between if the process is cancelled during
+ // reset has to be called because the state is kept between if the process is canceled during
// the second step.
if (!visible) {
reset()
diff --git a/studio/hooks/misc/withAuth.tsx b/studio/hooks/misc/withAuth.tsx
index 1502592d36a..d2824e9b20a 100644
--- a/studio/hooks/misc/withAuth.tsx
+++ b/studio/hooks/misc/withAuth.tsx
@@ -20,7 +20,7 @@ const PLATFORM_ONLY_PAGES = [
'auth/url-configuration',
]
-export function withAuth<T>(
+export function withAuth<T extends JSX.IntrinsicAttributes>(
WrappedComponent: ComponentType<T> | NextPageWithLayout<T, T>,
options: {
/**