Show system events (extrinsic success & failure) (#782)

This commit is contained in:
Jaco Greeff 2019-03-04 11:47:53 +01:00 committed by GitHub
parent f85147736a
commit 379161b749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,10 +123,9 @@ export default class Queue extends React.Component<Props, State> {
private addResultEvents ({ events = [] }: Partial<SubmittableResult> = {}) {
events.filter((record) => record.event).forEach(({ event: { method, section } }) => {
// filter events handled globally, or those we are not interested in
// NOTE We are not splitting balances, since we want to see the transfer - even if
// it doubles-up for own accounts (one with id, one without)
if ((section === 'democracy') || (section === 'system')) {
// filter events handled globally, or those we are not interested in, these are
// handled by the global overview, so don't add them here
if (section === 'democracy') {
return;
}