Skip to content

Commit

Permalink
fix(docs): incorrect variable (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Jul 23, 2024
1 parent cff1c85 commit 4766d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/docs/getting-started/mutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ import { useMutation } from "@reactive-dot/react";
import { Binary } from "polkadot-api";

function Component() {
const [transactionState, submit] = useMutation((tx) =>
const [remarkState, submit] = useMutation((tx) =>
tx.System.remark({ remark: Binary.fromText("Hello from reactive-dot!") }),
);

switch (transactionState) {
switch (remarkState) {
case IDLE:
return <div>No transaction submitted yet</div>;
case PENDING:
Expand Down

0 comments on commit 4766d01

Please sign in to comment.