From 2d49d4f093b1a900e95dc15a92d6d59a1238770d Mon Sep 17 00:00:00 2001 From: OleksandrSobol <dr.alexander.sobol@gmail.com> Date: Thu, 24 Dec 2020 12:04:23 +0200 Subject: [PATCH] CAKE-198 | fixed saving transaction description in the send_view_model.dart --- lib/view_model/send/send_view_model.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/view_model/send/send_view_model.dart b/lib/view_model/send/send_view_model.dart index d61ac3f96..a3f84fcd4 100644 --- a/lib/view_model/send/send_view_model.dart +++ b/lib/view_model/send/send_view_model.dart @@ -130,9 +130,12 @@ abstract class SendViewModelBase with Store { await pendingTransaction.commit(); if (pendingTransaction.id?.isNotEmpty ?? false) { - await transactionDescriptionBox.add(TransactionDescription( + _settingsStore.shouldSaveRecipientAddress + ? await transactionDescriptionBox.add(TransactionDescription( id: pendingTransaction.id, recipientAddress: address, - transactionNote: note)); + transactionNote: note)) + : await transactionDescriptionBox.add(TransactionDescription( + id: pendingTransaction.id, transactionNote: note)); } state = TransactionCommitted();