Tenant Creation – Error banner for plan selection/currency should not be shown

This commit is contained in:
Kartik Sharma 2025-09-27 14:24:05 +05:30 committed by pramod.mahajan
parent fb164bd2f2
commit a873ace109
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ const SubScription = ({ onSubmitSubScription, onNext }) => {
</div>
{Object.keys(errors).length > 0 && (
<div class="alert alert-danger" role="alert">
<div role="alert">
{Object.entries(errors).map(([key, error]) => (
<div key={key} className="danger-text">
{error?.message}

View File

@ -59,7 +59,7 @@ export const tenantDefaultValues = {
export const getSubscriptionSchema = (minUsers) =>
z.object({
planId: z.string().min(1, { message: "Please select Plan" }),
planId: z.string().min(1, { message: "Please select a plan to continue" }),
currencyId: z.string().uuid("Invalid currency"),
maxUsers: z
.number({ invalid_type_error: "Must be a number" })