Skip to content

Commit

Permalink
website: fix send transaction demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Jan 22, 2024
1 parent 1aeb04e commit 3cd81a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/components/demos/send-transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Inner() {

const {
data: receipt,
isPending,
isLoading,
isError,
error,
} = useWaitForTransaction({
Expand All @@ -79,7 +79,7 @@ function Inner() {
);
}

if (isPending) {
if (isLoading) {
return (
<>
<Loader2 className="h-4 w-4 mr-2 animate-spin" />
Expand Down Expand Up @@ -112,7 +112,7 @@ function Inner() {
Send Transactions
</>
);
}, [isSubmitting, isPending, receipt]);
}, [isSubmitting, isLoading, receipt]);

const action = () => (receipt ? reset() : write());

Expand Down Expand Up @@ -143,7 +143,7 @@ function Inner() {
<Button
className="w-full"
onClick={action}
disabled={!address || isSubmitting || isPending}
disabled={!address || isSubmitting || isLoading}
>
{buttonContent}
</Button>
Expand Down

0 comments on commit 3cd81a7

Please sign in to comment.