From 22860d2bea37367f79261d612dbf9f4bd98ac6f6 Mon Sep 17 00:00:00 2001
From: Cho Young-Hwi
Date: Tue, 17 Mar 2026 13:00:14 +0000
Subject: [PATCH] [#248] Fix ClaimRoyalties messaging: three distinct states +
accurate tooltip
Co-Authored-By: Claude Opus 4.6 (1M context)
---
src/components/ClaimRoyalties.tsx | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/components/ClaimRoyalties.tsx b/src/components/ClaimRoyalties.tsx
index 61db4379..80c75f05 100644
--- a/src/components/ClaimRoyalties.tsx
+++ b/src/components/ClaimRoyalties.tsx
@@ -118,11 +118,11 @@ export function ClaimRoyalties({ tokenAddress, plotCount, beneficiary }: ClaimRo
To claim:
- -
- Chain at least 2 plots ({plotCount}/2)
+
-
+ Chain at least 2 plots ({plotCount}/2) {eligible && "\u2713"}
-
- Unclaimed > 0 ({formatTruncated(unclaimed, decimals)} {reserveLabel})
+ Royalties accrue when readers trade your token ({formatTruncated(unclaimed, decimals)} {reserveLabel} unclaimed)
@@ -149,7 +149,12 @@ export function ClaimRoyalties({ tokenAddress, plotCount, beneficiary }: ClaimRo
{!eligible && txState === "idle" && (
- Chain {2 - plotCount} more {2 - plotCount === 1 ? "plot" : "plots"} to unlock royalties
+ Chain at least 2 plots to enable royalty claims ({plotCount}/2)
+
+ )}
+ {eligible && unclaimed === BigInt(0) && txState === "idle" && (
+
+ No royalties yet — royalties accrue when readers trade your token
)}
{txHash && txState === "done" && (