Skip to content

Commit

Permalink
remove timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Nov 29, 2024
1 parent 7d284c4 commit e942fc8
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import type {
TextOutput,
} from '~/components/pages/interfaces/form/formInterface.reducer';
import {
done,
formInterfaceReducer,
generate,
setOutput,
Expand Down Expand Up @@ -89,18 +88,6 @@ export default function WebsiteForm() {
isWaitingForOutputs: false,
});

useEffect(() => {
if (!state.isWaitingForOutputs) return;

const id = setTimeout(() => {
dispatch(done());
}, 7500);

return () => {
clearTimeout(id);
};
}, [state.isWaitingForOutputs]);

const onBlockOutput: OnBlockOutput = (block, _output, payload, metadata) => {
if (doesOutputExist(block)) {
if (payload instanceof Uint8Array && 'file_type' in metadata) {
Expand Down

0 comments on commit e942fc8

Please sign in to comment.