diff --git a/apps/web/components/TurnstileWidget.tsx b/apps/web/components/TurnstileWidget.tsx index 78f8ac79..c893a09b 100644 --- a/apps/web/components/TurnstileWidget.tsx +++ b/apps/web/components/TurnstileWidget.tsx @@ -17,6 +17,8 @@ const TurnstileWidget = (props: WidgetProps) => { if (props.refreshState > 0) { //@ts-ignore ref.current?.reset(); + //@ts-ignore + ref.current?.render(); } }, [props.refreshState]); const handleCallback = async (token: string, state: CallbackStates) => { diff --git a/apps/web/pages/auth/login.tsx b/apps/web/pages/auth/login.tsx index ae089088..4cf2d12d 100644 --- a/apps/web/pages/auth/login.tsx +++ b/apps/web/pages/auth/login.tsx @@ -70,12 +70,7 @@ export default function Login() { const handleSelect = (index: number) => { if (!authProviders) return; - if (authProviders[index].provider == 'Google') { - const errorMsg = - "Currently Google signin is disabled, we're working on it!"; - createErrorToast(errorMsg); - return; - } + setCurrentProvider(authProviders[index].provider.toLowerCase()); if ( userSession?.user?.provider.toLocaleLowerCase() == @@ -234,14 +229,7 @@ export default function Login() { boxShadow={'lg'} borderRadius={8} h={24} - cursor={provider == 'Google' ? 'not-allowed' : ''} - bgColor={ - provider == 'Google' - ? '#a3a6ab' - : selected - ? 'black' - : 'white' - } + bgColor={selected ? 'black' : 'white'} >
diff --git a/apps/web/pages/submissions/review.tsx b/apps/web/pages/submissions/review.tsx index 93e3a1f6..53c462b5 100644 --- a/apps/web/pages/submissions/review.tsx +++ b/apps/web/pages/submissions/review.tsx @@ -114,10 +114,6 @@ export default function Review() { }; useEffect(() => { - if (tsToken && reviewItemData) { - setLoading(false); - return; - } const getNecessaryData = async () => { if (tsToken && tsToken.length > 3 && !reviewItemData) { await refetch();