Skip to content

Commit

Permalink
Fix statusCb check
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Oct 13, 2018
1 parent 7bc8386 commit b187e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/promise/SubmittableExtrinsic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class SubmittableExtrinsic extends Extrinsic {
}

send (statusCb?: (status: ExtrinsicStatus) => any): Promise<Hash> {
if (status) {
if (statusCb) {
return this._api.rpc.author.submitAndWatchExtrinsic(this, statusCb);
}

Expand Down

0 comments on commit b187e9d

Please sign in to comment.