diff --git a/src/features/Apiexplorer/RequestResponseRenderer/index.tsx b/src/features/Apiexplorer/RequestResponseRenderer/index.tsx index 116678cf..b40df632 100644 --- a/src/features/Apiexplorer/RequestResponseRenderer/index.tsx +++ b/src/features/Apiexplorer/RequestResponseRenderer/index.tsx @@ -47,11 +47,14 @@ function RequestResponseRenderer({ }; const handleClick = useCallback(() => { - if (auth === AUTH_ENABLED) setToggleModal(true); + if (!is_logged_in && auth == AUTH_ENABLED) { + setToggleModal(true); + return; + } clear(); send(parseRequestJSON()); setResponseState(true); - }, [reqData, send, clear, auth]); + }, [reqData, send, clear, auth, is_logged_in]); const handleClear = () => { clear(); @@ -80,7 +83,7 @@ function RequestResponseRenderer({ /> {!is_not_valid ? ( - !is_logged_in && toggle_modal ? ( + toggle_modal ? ( ) : (