Fixed a bug in the DomainContext.jsx
This commit is contained in:
@ -21,6 +21,7 @@ export const DomainProvider = (props) => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (domains.length === 0) return;
|
||||
if (!domains.includes(currentDomain))
|
||||
updateCurrentDomain(domains.length !== 0 ? domains[0] : window.location.host);
|
||||
}, [domains]);
|
||||
|
Reference in New Issue
Block a user