mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix
This commit is contained in:
parent
aff01f7fde
commit
82e81b9a21
@ -50,7 +50,7 @@ func contentFrom(positions *AllPositionsResponse) string {
|
|||||||
colorName := Config.UString("wtf.mods.blockfolio.colors.name")
|
colorName := Config.UString("wtf.mods.blockfolio.colors.name")
|
||||||
colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows")
|
colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows")
|
||||||
colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop")
|
colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop")
|
||||||
totalFiat := 0
|
totalFiat := 0.0
|
||||||
for i := 0; i < len(positions.PositionList); i++ {
|
for i := 0; i < len(positions.PositionList); i++ {
|
||||||
colorForChange := colorGrows
|
colorForChange := colorGrows
|
||||||
if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {
|
if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user