Skip to content

Commit

Permalink
fix header waves
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Jul 12, 2024
1 parent d5d3494 commit 5068ac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/quickReplyModal/quickReplyModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const QuickReplyModalContent = forwardRef(

const headerText =
mode === 'wave'
? intl.formatMessage({ id: 'quick_reply.summary_wave' }, { host: 'demo.com' }) // TODO: update based on selected host
? intl.formatMessage({ id: 'quick_reply.summary_wave' }, { host: 'ecency.waves' }) // TODO: update based on selected host
: selectedPost && (selectedPost.summary || postBodySummary(selectedPost, 150, Platform.OS));

const draftId =
Expand Down
2 changes: 1 addition & 1 deletion src/screens/editor/container/editorContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class EditorContainer extends Component<EditorContainerProps, any> {
const { draftId } = this.state;
const { pollDraftsMap } = this.props;

return pollDraftsMap[draftId || DEFAULT_USER_DRAFT_ID] || [];
return pollDraftsMap[draftId || DEFAULT_USER_DRAFT_ID] || null;
};

_saveDraftToDB = async (fields, saveAsNew = false) => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const extractMetadata = async ({
};
}

if (pollDraft) {
if (pollDraft && pollDraft.title) {
// TODO convert draft poll to poll meta here
const _pollMeta = convertToPollMeta(pollDraft);
out = {
Expand Down

0 comments on commit 5068ac5

Please sign in to comment.