Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(signup): set send verification email button loading state

Trugamr4c9101d18d61
diff --git a/frontend/src/components/signup/EnterEmailStep.tsx b/frontend/src/components/signup/EnterEmailStep.tsx
index 058c231064..fa26e80b94 100644
--- a/frontend/src/components/signup/EnterEmailStep.tsx
+++ b/frontend/src/components/signup/EnterEmailStep.tsx
@@ -28,7 +28,7 @@ export default function EnterEmailStep({
incrementStep
}: DownloadBackupPDFStepProps): JSX.Element {
const { createNotification } = useNotificationContext();
- const { mutateAsync } = useSendVerificationEmail();
+ const { mutateAsync, isLoading } = useSendVerificationEmail();
const [emailError, setEmailError] = useState(false);
const { t } = useTranslation();
@@ -91,6 +91,8 @@ export default function EnterEmailStep({
className='h-14'
colorSchema="primary"
variant="outline_bg"
+ isLoading={isLoading}
+ isDisabled={isLoading}
> {String(t("signup.step1-submit"))} </Button>
</div>
</div>