summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/settings/SecurityPage.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings/SecurityPage.tsx b/src/components/settings/SecurityPage.tsx
index 2135696..d9079df 100644
--- a/src/components/settings/SecurityPage.tsx
+++ b/src/components/settings/SecurityPage.tsx
@@ -10,12 +10,12 @@ export default function SecurityPage() {
const hasGoogle = !!user.google_id;
const hasPassword = !!user.password;
-
+ const showSetPassword = hasGoogle && !hasPassword;
return (
<>
<div className="flex flex-col flex-start gap-[40px] w-[900px] h-[816px]">
<div className="flex flex-col gap-[20px] w-[900px] ">
- {hasGoogle && (
+ {showSetPassword && (
<div className="flex flex-col flex-start gap-[20px] w-[310px] h-[241px]">
<p className="text-light-violet font-medium">
ЗАДАТЬ ПАРОЛЬ