aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/setup.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-12-03 20:24:37 -0800
committerAdam Soltys <[email protected]>2015-12-03 20:24:37 -0800
commit3de0e94e1343df0ce2cc8f39de53b1eef87b0a84 (patch)
treecd2d4896890fa11f7c446f3ff218fbe43f3e61a1 /public/js/setup.js
parentb5edbc724cbebb44d54ee508752cb2101a356a3d (diff)
downloadcoinos-server-3de0e94e1343df0ce2cc8f39de53b1eef87b0a84.tar.gz
coinos-server-3de0e94e1343df0ce2cc8f39de53b1eef87b0a84.zip
Derive BIP44 wallets from BIP39 seeds on registration, clean up wallet page
Diffstat (limited to 'public/js/setup.js')
-rw-r--r--public/js/setup.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/setup.js b/public/js/setup.js
index a8f296f8..ea3808ea 100644
--- a/public/js/setup.js
+++ b/public/js/setup.js
@@ -43,6 +43,12 @@
});
user = $('#username').val();
return $.getJSON("/" + user + ".json", function(data) {
+ if (data.commission == null) {
+ data.commission = 0;
+ }
+ if (data.unit == null) {
+ data.unit = 'BTC';
+ }
$('#email').val(data.email);
$('#title').val(data.title);
$('#logo').val(data.logo);