From 3e255893c8ce3075d5ccf331c74eac9819232f5b Mon Sep 17 00:00:00 2001 From: miko <34790748+keikari@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:29:55 +0200 Subject: [PATCH] Don't show "tip not sent with comment" warning, when it's sent with a (#3180) comment Co-authored-by: miko --- ui/component/commentCreate/view.jsx | 1 + ui/component/walletTipAmountSelector/view.jsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 0734b396ec..faffde4fcc 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -787,6 +787,7 @@ export function CommentCreate(props: Props) { setDisableSubmitButton={setDisableReviewButton} setTipError={setTipError} tipError={tipError} + isComment /> )} diff --git a/ui/component/walletTipAmountSelector/view.jsx b/ui/component/walletTipAmountSelector/view.jsx index 8b22761209..9804a5cce5 100644 --- a/ui/component/walletTipAmountSelector/view.jsx +++ b/ui/component/walletTipAmountSelector/view.jsx @@ -28,6 +28,7 @@ type Props = { tipError: string, uri: string, canReceiveFiatTips: ?boolean, + isComment?: boolean, onChange: (number) => void, setConvertedAmount?: (number) => void, setDisableSubmitButton: (boolean) => void, @@ -49,6 +50,7 @@ function WalletTipAmountSelector(props: Props) { fiatConversion, tipError, canReceiveFiatTips, + isComment, onChange, setConvertedAmount, setDisableSubmitButton, @@ -275,6 +277,7 @@ function WalletTipAmountSelector(props: Props) { ? getHelpMessage(__('Only creators that verify cash accounts can receive tips.')) : getHelpMessage(__('Send a tip directly from your attached card.')))} {activeTab === TAB_FIAT && + !isComment && getHelpMessage( __( 'IMPORTANT: this donation is sent without a comment. If you want to include a comment, click the $ next to the comment input area.'