Skip to content

Commit

Permalink
fix ledgers config
Browse files Browse the repository at this point in the history
  • Loading branch information
altitude committed Jul 20, 2021
1 parent 5096cb8 commit 4b71d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func Init() {
}

func Remember(ledger string) {
ledgers := viper.Get("ledgers").([]string)
ledgers := viper.Get("ledgers").([]interface{})

for _, v := range ledgers {
if ledger == v {
if ledger == v.(string) {
return
}
}
Expand Down

0 comments on commit 4b71d87

Please sign in to comment.