aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/lib/explorer-link.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js
index a2e7872f9..92b3376fa 100644
--- a/ui/lib/explorer-link.js
+++ b/ui/lib/explorer-link.js
@@ -1,10 +1,13 @@
module.exports = function(hash, network) {
+ const net = parseInt(network)
let prefix
- switch (network) {
+ switch (net) {
case 1: // main net
prefix = ''
+ break
case 2: // morden test net
prefix = 'testnet.'
+ break
default:
prefix = ''
}