Skip to content

Commit

Permalink
if no block, redirected /
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorjs committed Jun 9, 2020
1 parent 67b1eba commit e8996e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions front/bitcoind-zmq/src/views/Block-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ export default {
};
},
update: data => data.getblock,
result({ data }) {
if (data.getblock === undefined) {
this.$router.push("/");
}
},
error(error) {
this.error = JSON.stringify(error.message);
}
Expand Down

0 comments on commit e8996e8

Please sign in to comment.