Skip to content

Commit 731089b

Browse files
committed
Fix claim condition form loading state (#5421)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the conditional rendering logic in the `claim-conditions-form` component to use `claimConditionsQuery.isPending` instead of `isFetchingData`, improving clarity on the loading state of the data. ### Detailed summary - Changed the condition from `if (isFetchingData)` to `if (claimConditionsQuery.isPending)` in `index.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 92e55c8 commit 731089b

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export const ClaimConditionsForm: React.FC<ClaimConditionsFormProps> = ({
454454
};
455455
}, [claimConditionsQuery.data, controlledFields, isMultiPhase]);
456456

457-
if (isFetchingData) {
457+
if (claimConditionsQuery.isPending) {
458458
return (
459459
<div className="flex h-[400px] w-full items-center justify-center rounded-lg border border-border">
460460
<Spinner className="size-10" />

0 commit comments

Comments
 (0)