From 5d82fa32a57b127a046757cb7abe0da0ab4ac9fb Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Wed, 23 Oct 2019 11:49:33 -0400 Subject: [PATCH] Fix #1769: Auto-Contribute wallet notification no longer displays probi --- .../Notifications/RewardsNotificationViewBuilder.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BraveRewardsUI/Wallet/Notifications/RewardsNotificationViewBuilder.swift b/BraveRewardsUI/Wallet/Notifications/RewardsNotificationViewBuilder.swift index 03998878b..318e58007 100644 --- a/BraveRewardsUI/Wallet/Notifications/RewardsNotificationViewBuilder.swift +++ b/BraveRewardsUI/Wallet/Notifications/RewardsNotificationViewBuilder.swift @@ -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))