appease TS

This commit is contained in:
Dane Everitt 2020-09-22 20:52:37 -07:00
parent 4bfc91a30e
commit 7968258004
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -45,11 +45,11 @@ export default ({ className }: WithClassname) => {
const directory = ServerContext.useStoreState(state => state.files.directory);
useEffect(() => {
if (visible) {
return () => {
clearFlashes('files:directory-modal');
};
}
if (!visible) return;
return () => {
clearFlashes('files:directory-modal');
};
}, [ visible ]);
const submit = ({ directoryName }: Values, { setSubmitting }: FormikHelpers<Values>) => {