Skip to content

Commit 4a5d34a

Browse files
committed
Remove invalid modules loading spinner in contract deploy page
1 parent a1b518c commit 4a5d34a

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"use client";
2-
3-
import { Spinner } from "@/components/ui/Spinner/Spinner";
42
import { Alert, AlertTitle } from "@/components/ui/alert";
53
import { Button } from "@/components/ui/button";
64
import { Checkbox, CheckboxWithLabel } from "@/components/ui/checkbox";
@@ -765,18 +763,13 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
765763
);
766764
})}
767765

768-
{isModular &&
769-
(modules?.length ? (
770-
<ModularContractDefaultModulesFieldset
771-
form={form}
772-
modules={modules}
773-
isTWPublisher={isTWPublisher}
774-
/>
775-
) : (
776-
<div className="flex min-h-[250px] items-center justify-center">
777-
<Spinner className="size-8" />
778-
</div>
779-
))}
766+
{isModular && modules && modules.length > 0 && (
767+
<ModularContractDefaultModulesFieldset
768+
form={form}
769+
modules={modules}
770+
isTWPublisher={isTWPublisher}
771+
/>
772+
)}
780773

781774
{advancedParams.length > 0 && (
782775
<Accordion allowToggle>

0 commit comments

Comments
 (0)