Fixed bug when viewing anime page logged out
This commit is contained in:
parent
d8848c7d56
commit
4801a254f7
@ -1,2 +1,5 @@
|
|||||||
component Rating(value float64, user *arn.User)
|
component Rating(value float64, user *arn.User)
|
||||||
.anime-rating= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)
|
if user == nil
|
||||||
|
.anime-rating= fmt.Sprintf("%.1f", value)
|
||||||
|
else
|
||||||
|
.anime-rating= fmt.Sprintf("%." + strconv.Itoa(user.Settings().Format.RatingsPrecision) + "f", value)
|
Loading…
Reference in New Issue
Block a user