feat: ensures auth component doesn't render if disabled
This commit is contained in:
@@ -55,7 +55,7 @@ const Auth: React.FC<Props> = (props) => {
|
||||
}
|
||||
}, [serverURL, api, slug, email]);
|
||||
|
||||
if (!collection.auth.disableLocalStrategy) {
|
||||
if (collection.auth.disableLocalStrategy) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user