null error bandaid

This commit is contained in:
julian 2023-07-25 13:55:19 -06:00
parent 128fa9db6c
commit 04658f8eef

View file

@ -77,8 +77,10 @@ class NotificationApi {
final id = prefs.currentNotificationId; final id = prefs.currentNotificationId;
String confirms = ""; String confirms = "";
if (txid != null) { if (txid != null &&
confirms = " (${confirmations!}/${requiredConfirmations!})"; confirmations != null &&
requiredConfirmations != null) {
confirms = " ($confirmations/$requiredConfirmations)";
} }
final NotificationModel model = NotificationModel( final NotificationModel model = NotificationModel(