Skip to content

Commit

Permalink
Don't show "tip not sent with comment" warning, when it's sent with a (
Browse files Browse the repository at this point in the history
…#3180)

comment

Co-authored-by: miko <sauce47@posteo.net>
  • Loading branch information
keikari and miko authored Nov 18, 2024
1 parent 628fb13 commit 3e25589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/component/commentCreate/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ export function CommentCreate(props: Props) {
setDisableSubmitButton={setDisableReviewButton}
setTipError={setTipError}
tipError={tipError}
isComment
/>
)}

Expand Down
3 changes: 3 additions & 0 deletions ui/component/walletTipAmountSelector/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type Props = {
tipError: string,
uri: string,
canReceiveFiatTips: ?boolean,
isComment?: boolean,
onChange: (number) => void,
setConvertedAmount?: (number) => void,
setDisableSubmitButton: (boolean) => void,
Expand All @@ -49,6 +50,7 @@ function WalletTipAmountSelector(props: Props) {
fiatConversion,
tipError,
canReceiveFiatTips,
isComment,
onChange,
setConvertedAmount,
setDisableSubmitButton,
Expand Down Expand Up @@ -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.'
Expand Down

0 comments on commit 3e25589

Please sign in to comment.