-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: AU-With a participant sets zero amount creating split expense displays error. #47886
fix: AU-With a participant sets zero amount creating split expense displays error. #47886
Conversation
…splays error. Signed-off-by: krishna2323 <[email protected]>
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@Krishna2323 Have you confirmed the translations with the team? |
@jayeshmangwani, sorry, I forgot about that. Can you please confirm error message and translation in Slack? I'm not in the channel. invalidSplitYourself: 'Please enter a split amount greater than zero for yourself.',
invalidSplitYourself: 'Por favor, ingresa una cantidad de división mayor que cero para ti.', |
@alexpensify Do you think you could help with getting the English and Spanish copies for the error text or should we ask in #expensify-open-source? |
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@jayeshmangwani, all done. |
@@ -483,8 +483,13 @@ function MoneyRequestConfirmationList({ | |||
return; | |||
} | |||
|
|||
if (transaction?.splitShares[currentUserPersonalDetails.accountID] && (transaction?.splitShares[currentUserPersonalDetails.accountID]?.amount ?? 0) === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Krishna2323 Please add a comment here that states this change was to prevent setting your own split to 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
@@ -483,8 +483,13 @@ function MoneyRequestConfirmationList({ | |||
return; | |||
} | |||
|
|||
if (transaction?.splitShares[currentUserPersonalDetails.accountID] && (transaction?.splitShares[currentUserPersonalDetails.accountID]?.amount ?? 0) === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (transaction?.splitShares[currentUserPersonalDetails.accountID] && (transaction?.splitShares[currentUserPersonalDetails.accountID]?.amount ?? 0) === 0) { | |
if (transaction?.splitShares[currentUserPersonalDetails.accountID] && (transaction.splitShares[currentUserPersonalDetails.accountID]?.amount ?? 0) === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good to me, added 2 minor suggestion 🚀
Changes works well, @Krishna2323 Added minor suggestions please check it |
Signed-off-by: krishna2323 <[email protected]>
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/srikarparsi in version: 9.0.30-0 🚀
|
Details
Fixed Issues
$ #46802
PROPOSAL: #46802 (comment)
Tests
Offline tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4