diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/TransferOut/dydxTransferOutViewPresenter.swift b/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/TransferOut/dydxTransferOutViewPresenter.swift index 102c8ba6a..c91d88c6a 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/TransferOut/dydxTransferOutViewPresenter.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/TransferOut/dydxTransferOutViewPresenter.swift @@ -159,6 +159,7 @@ class dydxTransferOutViewPresenter: HostedViewPresenter Void)? + @Published public var shouldDisplayWarningWhenEmpty: Bool = false public init(onEdited: ((String?) -> Void)?) { super.init(label: DataLocalizer.localize(path: "APP.GENERAL.MEMO"), @@ -20,7 +21,7 @@ public class MemoBoxModel: PlatformTextInputViewModel { } private var memoWarning: InlineAlertViewModel? { - guard value?.isEmpty != false else { return nil } + guard value?.isEmpty != false && shouldDisplayWarningWhenEmpty else { return nil } return InlineAlertViewModel(.init(title: nil, body: DataLocalizer.localize(path: "ERRORS.TRANSFER_MODAL.TRANSFER_WITHOUT_MEMO"), level: .warning))