fix(pending-post): return to board after abandoned challenge

This commit is contained in:
Tommaso Casaburi
2026-05-23 17:24:22 +07:00
parent f4965ee678
commit e95dcb8af5
5 changed files with 88 additions and 12 deletions
@@ -65,6 +65,13 @@ vi.mock('@bitsocial/bitsocial-react-hooks', () => ({
},
state: 'succeeded',
}),
useCommunities: ({ communities }: { communities?: Array<{ name: string }> } = {}) => ({
communities: (communities ?? []).map(() => ({
roles: {
'0x123': { role: 'moderator' },
},
})),
}),
useEditedComment: ({ comment }: { comment?: TestComment }) => ({
editedComment: comment,
failedEdits: {},