From e5a04c53dcd8894d6ab62bf20a4b6b45229556b4 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 31 Aug 2024 00:01:23 +0530 Subject: [PATCH] fix: use selectedPaginationSetting --- src/components/organisms/RightSidePanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) => {