@@ -568,6 +568,7 @@ function get_wallets_response(data) {
568568 var name = wallet [ "name" ]
569569 get_wallet_balance ( id )
570570 //href, wallet_name, wallet_description, wallet_amount
571+ console . log ( "type is " + type )
571572 var href = ""
572573 if ( type == "STANDARD_WALLET" ) {
573574 href = "wallet-dark.html"
@@ -614,26 +615,24 @@ function get_wallet_summaries_response(data){
614615 var type = wallet [ "type" ]
615616 var id = i
616617 var name = wallet [ "type" ]
617- if ( type == "STANDARD_WALLET" ) {
618- name = "Chia Wallet"
619- type = "Chia"
620- } else if ( name == "COLOURED_COIN" ) {
621- name = "CC Wallet"
622- type = wallet [ "name" ]
623- if ( type . length > 18 ) {
624- type = type . substring ( 0 , 18 ) ;
625- type = type . concat ( "..." )
626- }
627- }
618+
628619 get_wallet_balance ( id )
629620 //href, wallet_name, wallet_description, wallet_amount
630621 var href = ""
631622 if ( type == "STANDARD_WALLET" ) {
632- href = "../wallet-dark.html"
623+ href = "./wallet-dark.html"
624+ name = "Chia Wallet"
625+ type = "Chia"
633626 } else if ( type == "RATE_LIMITED" ) {
634- href = "../ rl_wallet/rl_wallet.html"
627+ href = "rl_wallet/rl_wallet.html"
635628 } else if ( type == "COLOURED_COIN" ) {
636- href = "../cc_wallet/cc_wallet.html"
629+ href = "cc_wallet/cc_wallet.html"
630+ name = "CC Wallet"
631+ type = wallet [ "name" ]
632+ if ( type . length > 18 ) {
633+ type = type . substring ( 0 , 18 ) ;
634+ type = type . concat ( "..." )
635+ }
637636 }
638637
639638 if ( id == g_wallet_id ) {
0 commit comments