chore: fix check enable signup

This commit is contained in:
Steven
2023-09-24 23:46:28 +08:00
parent fc8808ce04
commit 60c440ae10
3 changed files with 3 additions and 2 deletions

View File

@ -104,7 +104,7 @@ const SignIn: React.FC = () => {
</Button>
</div>
</form>
{workspaceStore.setting.enableSignup && (
{workspaceStore.profile.enableSignup && (
<p className="w-full mt-4 text-sm">
<span className="dark:text-gray-500">{"Don't have an account yet?"}</span>
<Link to="/auth/signup" className="cursor-pointer ml-2 text-blue-600 hover:underline">

View File

@ -27,7 +27,7 @@ const SignUp: React.FC = () => {
});
}
if (!workspaceStore.setting.enableSignup) {
if (!workspaceStore.profile.enableSignup) {
return navigateTo("/auth", {
replace: true,
});