From c9f0051875cfa46e66dd4e8e38b74674d8a585c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Tue, 23 Jul 2024 23:06:17 +1200 Subject: [PATCH] fix(docs): incorrect variable --- apps/docs/docs/getting-started/mutation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/docs/getting-started/mutation.md b/apps/docs/docs/getting-started/mutation.md index 1c634958..50964fd1 100644 --- a/apps/docs/docs/getting-started/mutation.md +++ b/apps/docs/docs/getting-started/mutation.md @@ -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
No transaction submitted yet
; case PENDING: