Skip to content

Commit

Permalink
feat: removes console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lewtakm committed Feb 18, 2021
1 parent 6e4cf3c commit 267fba6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,12 @@ export const Form: FC<FormProps> = ({
const [internalLoading, setInternalLoading] = useSafeSetState<boolean>(loading);
const [requiredChildren, setRequiredChildren] = useState<Array<string>>([]);
const showSnackbar = useSnackbar();
console.log(onSubmit);
useEffect(() => {
setInternalLoading(loading);
}, [loading]);

const handleOnSubmit = useCallback((values) => {
setInternalLoading(true);
console.log(onSubmit);
return (
onSubmit &&
onSubmit(values)
Expand Down

0 comments on commit 267fba6

Please sign in to comment.