diff --git a/blockfolio/widget.go b/blockfolio/widget.go index c9f49be6..2fe23e51 100644 --- a/blockfolio/widget.go +++ b/blockfolio/widget.go @@ -50,7 +50,7 @@ func contentFrom(positions *AllPositionsResponse) string { colorName := Config.UString("wtf.mods.blockfolio.colors.name") colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows") colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop") - totalFiat := 0 + totalFiat := 0.0 for i := 0; i < len(positions.PositionList); i++ { colorForChange := colorGrows if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {