Skip to content

Commit 9e4d1f4

Browse files
alert fix
1 parent 7ee9415 commit 9e4d1f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/components/DropZone.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,13 @@ const DropZone: FunctionComponent = () => {
194194

195195
return (
196196
<>
197-
<CustomAlert
197+
{alertDetails.showAlert&&<CustomAlert
198198
open={alertDetails.showAlert}
199199
handleClose={handleClose}
200200
severity={alertDetails.alertType}
201201
alertMessage={alertDetails.alertMessage}
202-
/>
202+
/>}
203+
203204
<Dropzone
204205
loadingComponent={isLoading && <Loader />}
205206
isTesting={true}

0 commit comments

Comments
 (0)