Commit 744ce985 authored by / /\ / /\/'s avatar / /\ / /\/
Browse files

clean up debug statements and broadcast custom ops

parent ff068f0d
......@@ -238,7 +238,6 @@ export default connect(
successCallback: successCallback,
...createCommunityPayload,
};
debugger;
dispatch(communityActions.createCommunity(payload));
},
};
......
......@@ -122,7 +122,6 @@ export const setCommunityOwnerWifPassword = payload => ({
});
// Has a saga.
export const createCommunity = payload => {
debugger;
return {
type: CREATE_COMMUNITY_ACCOUNT,
payload,
......@@ -143,7 +142,6 @@ export const createCommunitySuccess = payload => ({
});
export const communityHivemindOperation = payload => {
debugger;
return {
type: COMMUNITY_HIVEMIND_OPERATION,
payload,
......
......@@ -82,11 +82,10 @@ export function* customOps(action) {
communityOwnerPosting
);
// SteemJs.
yield broadcast.sendAsync(
{
extensions: [],
operations: [[setRoleOperation, updatePropsOperation]],
operations: [setRoleOperation, updatePropsOperation],
},
[
auth.toWif(
......@@ -96,13 +95,13 @@ export function* customOps(action) {
),
]
);
debugger;
yield put({
type: communityActions.CREATE_COMMUNITY_SUCCESS,
payload: true,
});
} catch (error) {
console.log(error);
yield put({
type: communityActions.CREATE_COMMUNITY_ACCOUNT_ERROR,
payload: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment