We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68b8cf commit c9f9aa1Copy full SHA for c9f9aa1
components/sections/migrate/deep-scan-modal.tsx
@@ -147,6 +147,10 @@ export function DeepScanModal({
147
}
148
149
const handleClose = () => {
150
+ if (isCompleted) {
151
+ onDone?.()
152
+ return
153
+ }
154
// Just close the modal without canceling the scan
155
// Let the scan continue in background
156
onClose()
@@ -395,7 +399,13 @@ export function DeepScanModal({
395
399
396
400
<DialogFooter>
397
401
{isCompleted ? (
398
- <Button onClick={onDone}>Done</Button>
402
+ <Button
403
+ onClick={() => {
404
405
+ }}
406
+ >
407
+ Done
408
+ </Button>
409
) : isScanning ? (
410
<Button variant="outline" onClick={onCancel} disabled={isCancelling}>
411
{isCancelling ? 'Cancelling...' : 'Cancel Scan'}
0 commit comments