Skip to content

Commit b3c9278

Browse files
sktbrdclaude
andcommitted
fix(bounties): preserve form state on dialog dismiss + add indexing note
Inputs are now only cleared after a successful submission, not on every close. Also adds a hint on the success screen that the list may take a moment to update. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9d319d4 commit b3c9278

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/components/bounties/CreateBountyModal.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ export function CreateBountyModal({ children }: CreateBountyModalProps) {
9898

9999
const handleClose = (val: boolean) => {
100100
if (!val) {
101-
setName("");
102-
setDescription("");
103-
setReward("");
101+
if (active.isSuccess) {
102+
setName("");
103+
setDescription("");
104+
setReward("");
105+
}
104106
openBounty.reset();
105107
soloBounty.reset();
106108
}
@@ -149,6 +151,9 @@ export function CreateBountyModal({ children }: CreateBountyModalProps) {
149151
<p className="text-sm text-muted-foreground mt-1">
150152
Your bounty is live. Share it with the community to get submissions.
151153
</p>
154+
<p className="text-xs text-muted-foreground mt-2">
155+
It may take a moment for the bounty to appear in the list.
156+
</p>
152157
</div>
153158
{hash && (
154159
<a

0 commit comments

Comments
 (0)