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 c9f9aa1 commit 58f38d8Copy full SHA for 58f38d8
components/sections/migrate/deep-scan-modal.tsx
@@ -148,7 +148,9 @@ export function DeepScanModal({
148
149
const handleClose = () => {
150
if (isCompleted) {
151
- onDone?.()
+ if (typeof onDone === 'function') {
152
+ onDone()
153
+ }
154
return
155
}
156
// Just close the modal without canceling the scan
@@ -399,13 +401,7 @@ export function DeepScanModal({
399
401
400
402
<DialogFooter>
403
{isCompleted ? (
- <Button
- onClick={() => {
404
405
- }}
406
- >
407
- Done
408
- </Button>
+ <Button onClick={onDone}>Done</Button>
409
) : isScanning ? (
410
<Button variant="outline" onClick={onCancel} disabled={isCancelling}>
411
{isCancelling ? 'Cancelling...' : 'Cancel Scan'}
0 commit comments