Skip to content

Commit

Permalink
rolled back some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
finnc0 committed Mar 27, 2023
1 parent 6245c92 commit 1ed6ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/web/components/TurnstileWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 0 additions & 4 deletions apps/web/pages/submissions/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ed6ccb

Please sign in to comment.