mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
feat(infisical-pg): completed signup, login, password and backup key migration
This commit is contained in:
@@ -72,9 +72,9 @@ export const ServerConfigProvider = ({ children }: Props): JSX.Element => {
|
||||
|
||||
export const useServerConfig = () => {
|
||||
const ctx = useContext(ServerConfigContext);
|
||||
if (!ctx) {
|
||||
throw new Error("useServerConfig has to be used within <UserContext.Provider>");
|
||||
}
|
||||
// if (!ctx) {
|
||||
// throw new Error("useServerConfig has to be used within <UserContext.Provider>");
|
||||
// }
|
||||
|
||||
return ctx;
|
||||
return ctx || { config: { allowSignUp: true } };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user