Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hellno committed Sep 7, 2023
1 parent dbfc577 commit 98cb0c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/helpers/farcaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const convertEditorCastToPublishableCast = async (draft: DraftType): Prom
mentions: [...cast.mentions, Number(fid)],
mentionsPositions: [...cast.mentionsPositions, match.index - idxReducedByPreviousMentions]
}
idxReducedByPreviousMentions += match[0].length;
idxReducedByPreviousMentions += match[1].length;
}

if (!isEmpty(draft.parentCastId)) {
Expand Down
1 change: 1 addition & 0 deletions src/stores/useNewPostStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const store = (set: StoreSet) => ({

try {
state.updatePostDraft(draftIdx, { ...draft, status: DraftStatus.publishing });
console.log('input text', draft.text)
const castBody = await Promise.resolve(convertEditorCastToPublishableCast(draft));
console.log('publishPostdraft castBody', castBody)
await Promise.resolve(
Expand Down

0 comments on commit 98cb0c3

Please sign in to comment.