Skip to content
Snippets Groups Projects
Commit c9f03227 authored by Jason Salyers's avatar Jason Salyers
Browse files

Merge branch 'jsalyers-fix-new-comments-disappearing' into 'develop'

[JES] Fix for comments disappearing. I had an invalid check when trying to...

See merge request !151
parents 17a63a10 cc50b045
No related branches found
No related tags found
2 merge requests!152Develop,!151[JES] Fix for comments disappearing. I had an invalid check when trying to...
......@@ -85,6 +85,12 @@ export default function reducer(state = defaultState, action = {}) {
body: payload.body,
title: payload.title,
category: payload.category,
stats: {
hide: false,
gray: false,
total_votes: 0,
flag_weight: 0,
},
};
return state.updateIn(['content', key], Map(), c =>
c.mergeDeep(update)
......
......@@ -392,7 +392,10 @@ function* broadcastPayload({
function* accepted_comment({ operation }) {
const { author, permlink } = operation;
//yield call(getContent, { author, permlink });
if (operation.title === '') {
if (
operation.__config.originalBody !== null &&
operation.__config.originalBody !== undefined
) {
yield call(lazyUpdate, operation);
} else {
yield call(wait, 9000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment