docs[patch]: Fix typo in feedback (#23146)

This commit is contained in:
Jacob Lee 2024-06-18 16:32:04 -07:00 committed by GitHub
parent 74749c909d
commit 2ae718796e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,6 +158,7 @@ export default function Feedback() {
// Set a cookie to prevent feedback from being sent multiple times // Set a cookie to prevent feedback from being sent multiple times
setCookie(cookieName, window.location.pathname, 1); setCookie(cookieName, window.location.pathname, 1);
setFeedbackSent(true); setFeedbackSent(true);
};
const handleFeedbackDetails = async (e) => { const handleFeedbackDetails = async (e) => {
e.preventDefault(); e.preventDefault();
@ -185,7 +186,6 @@ export default function Feedback() {
} }
setFeedbackDetailsSent(true); setFeedbackDetailsSent(true);
}; };
};
useEffect(() => { useEffect(() => {
if (typeof window !== "undefined") { if (typeof window !== "undefined") {