diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index 9cc78fe4..d1d462bb 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -130,7 +130,7 @@ export const RightSidePanel = () => { // }; const handleConfirmListCapture = useCallback(() => { - if (!selectedOption) { + if (!selectedPaginationSetting) { setShowListOptions(true); return; } @@ -138,7 +138,7 @@ export const RightSidePanel = () => { stopCaptureAndEmitGetListSettings(); setShowListOptions(false); // Reset options display setSelectedOption(null); // Reset selected option - }, [selectedOption, stopCaptureAndEmitGetListSettings]); + }, [selectedPaginationSetting, stopCaptureAndEmitGetListSettings]); const captureScreenshot = (fullPage: boolean) => {