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

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

[JES] Fix for comments disappearing. I had an invalid check when trying to determine if a comment was new or if it was an edit of an existing comment
parent 17a63a10
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