Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #1769: Auto-Contribute wallet notification no longer displays pro…
Browse files Browse the repository at this point in the history
…bi (#1778)
  • Loading branch information
kylehickinson authored Oct 23, 2019
1 parent 7411503 commit ee1d7bf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ struct RewardsNotificationViewBuilder {
}

private static func getAutoContribute(notification: RewardsNotification) -> WalletNotificationView? {
if let result = notification.userInfo["result"] as? Int, let amount = notification.userInfo["amount"] as? String, let batResult = Result(rawValue: result) {
if let result = notification.userInfo["result"] as? Int,
let probi = notification.userInfo["amount"] as? String,
let amount = BATValue(probi: probi)?.displayString,
let batResult = Result(rawValue: result) {
switch batResult {
case .ledgerOk:
return RewardsNotificationViewBuilder.get(actionNotification: notification, bodyText: String.localizedStringWithFormat(Strings.NotificationContributeSuccess, amount))
Expand Down

0 comments on commit ee1d7bf

Please sign in to comment.