Skip to content

Commit e776e19

Browse files
committed
Update CustomDomainDialog.tsx
1 parent 015cc64 commit e776e19

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

apps/web/app/(org)/dashboard/settings/organization/components/CustomDomainDialog/CustomDomainDialog.tsx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,19 @@ const CustomDomainDialog = ({
221221
setDomain(cleanedDomain);
222222

223223
try {
224-
//if theres a domain already, remove it
225224
if (activeOrganization?.organization.customDomain) {
226225
await removeOrganizationDomain(
227226
activeOrganization?.organization.id as string
228227
);
229228
}
230229

231-
232230
const data = await updateDomain(
233231
cleanedDomain,
234232
activeOrganization?.organization.id as string
235233
)
236234

235+
handleNext();
236+
237237
toast.success("Domain settings updated");
238238
router.refresh();
239239

@@ -371,16 +371,13 @@ const CustomDomainDialog = ({
371371
{currentStep.id === 'success' && (
372372
<SuccesStep />
373373
)}
374-
</div>
375-
374+
</div>
376375
</div>
377376

378377
{currentStep.id !== 'success' && (
379378
<DialogFooter>
380379

381380
{currentStep.id === "verify" && (
382-
<div className="flex justify-between items-center w-full">
383-
<div className="flex gap-2 items-center">
384381
<Button
385382
type="button"
386383
variant="gray"
@@ -396,19 +393,6 @@ const CustomDomainDialog = ({
396393
)}
397394
Check Status
398395
</Button>
399-
400-
{isVerified && (
401-
<Button
402-
onClick={handleNext}
403-
size="sm"
404-
variant="dark"
405-
className="min-w-[80px]"
406-
>
407-
Next
408-
</Button>
409-
)}
410-
</div>
411-
</div>
412396
)}
413397

414398
{currentStep.id === 'domain' && (

0 commit comments

Comments
 (0)