Skip to content

Commit

Permalink
alerts-server: Fix a rendering bug on FixedPriceAlertsTask.
Browse files Browse the repository at this point in the history
While rendering the email text to send, the current price of the
related currency was being passed as BigDecimal to the MessagesApi
which uses java.text.MessageFormat, this leads to round very small
values to 0 which is useless.
  • Loading branch information
AlexITC committed Jan 28, 2018
1 parent d9df79b commit 27e45c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class FixedPriceAlertsTask @Inject() (
val message = messagesApi(
messageKey,
event.alert.currency.string,
event.currentPrice,
event.currentPrice.toString,
event.alert.market.string)

percentageDifferenceMaybe.map { percent =>
Expand Down

0 comments on commit 27e45c1

Please sign in to comment.