Skip to content
Snippets Groups Projects
Commit aed46783 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix #220 also force integer with new Membership()

parent 1bc018e4
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ var Membership = function(json) { ...@@ -12,7 +12,7 @@ var Membership = function(json) {
that[key] = json[key]; that[key] = json[key];
}); });
this.blockNumber = this.number; this.blockNumber = isNaN(this.number) ? this.number : parseInt(this.number);
this.blockHash = this.fpr; this.blockHash = this.fpr;
this.version = "1"; this.version = "1";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment