Merge pull request #2432 from ecency/nt/tweaks

Nt/tweaks
This commit is contained in:
Feruz M 2022-08-23 13:51:28 +03:00 committed by GitHub
commit affcda0553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -817,6 +817,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => {
resolve(result.result);
})
.catch((err) => {
bugsnagInstance.notify(err);
reject(err);
});
});
@ -847,6 +848,7 @@ const _vote = (currentAccount, pin, author, permlink, weight) => {
if (err && get(err, 'jse_info.code') === 4030100) {
err.message = getDsteemDateErrorMessage(err);
}
bugsnagInstance.notify(err);
reject(err);
});
});

View File

@ -373,7 +373,7 @@ class EditorContainer extends Component<any, any> {
const { beneficiariesMap, currentAccount } = this.props;
return beneficiariesMap[draftId || TEMP_BENEFICIARIES_ID]
|| { account: currentAccount.name, weight: 10000 };
|| [{ account: currentAccount.name, weight: 10000 }];
}
_handleRoutingAction = (routingAction) => {