add dependency in fetchDocument useEffect (#21201)

This commit is contained in:
Sweta Agarwalla 2025-05-15 12:54:47 +05:30 committed by GitHub
parent d2162f5db9
commit caf330ea36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ const MyDataPage = () => {
useEffect(() => {
fetchDocument();
}, [selectedPersona]);
}, [selectedPersona, customizePageClassBase.defaultLayout]);
useEffect(() => {
updateWelcomeScreen(!usernameExistsInCookie && isWelcomeVisible);