Skip to content
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

Improve cancelling money in a different currency offline #13329

Merged
merged 37 commits into from
Jan 5, 2023

Conversation

youssef-lr
Copy link
Contributor

@youssef-lr youssef-lr commented Dec 5, 2022

Details

This PR improves the experience of cancelling money offline in a different currency. Since we cannot update the total while we're offline, as the currency conversion happens in the server, we can now let the user now that the total of the IOU is not final until they're back online.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/245284
$ #14015

Tests

  • Verify that no errors appear in the JS console

Offline tests

Request Money - multiple currencies (offline)

  1. Disable the internet connection on the device
  2. Create a money request in a 1:1 conversation i.e 100 USD
  3. Verify the IOU is created in conversation but it is grayed out
  4. Create a second money request but this time in a different currency to the iouReport i.e 100 AED
  5. Verify the IOU Preview total does not update
  6. Verify the IOU Preview has a message explaining that the total will update when you come back online
  7. Click on the IOU Preview to access the details in the rightDocked side modal
  8. Verify the IOU Preview in the right pane matches the IOU Preview displayed in the main chat
  9. Enable the internet connection on the device
  10. Verify the IOU Preview is no longer greyed out
  11. Verify the total in the IOU Preview updates correctly in both the chat and the rightDocked side modal, displayed in the iouReport's consolidated currency (in this example, that would be USD)
  12. Refresh/close and reopen app
  13. Verify the IOU is still displaying correctly in both places

Cancelling money requests - multiple currencies (offline)

  1. Create a money request in the report's currency, i.e. 100 USD.
  2. Go offline.
  3. Create a money request in a different currency, i.e. 20 AED.
  4. Make sure you see the message in the IOU Preview saying that total will update when you're back online.
  5. Cancel the 20 AED money request.
  6. Make sure the message is no longer there, as we are not waiting for currency conversion anymore.

QA Steps

  • Verify that no errors appear in the JS console
    Request Money - multiple currencies (offline)
  1. Disable the internet connection on the device
  2. Create a money request in a 1:1 conversation i.e 100 USD
  3. Verify the IOU is created in conversation but it is grayed out
  4. Create a second money request but this time in a different currency to the iouReport i.e 100 AED
  5. Verify the IOU Preview total does not update
  6. Verify the IOU Preview has a message explaining that the total will update when you come back online
  7. Click on the IOU Preview to access the details in the rightDocked side modal
  8. Verify the IOU Preview in the right pane matches the IOU Preview displayed in the main chat
  9. Enable the internet connection on the device
  10. Verify the IOU Preview is no longer greyed out
  11. Verify the total in the IOU Preview updates correctly in both the chat and the rightDocked side modal, displayed in the iouReport's consolidated currency (in this example, that would be USD)
  12. Refresh/close and reopen app
  13. Verify the IOU is still displaying correctly in both places

Cancelling money requests - multiple currencies (offline)

  1. Create a money request in the report's currency, i.e. 100 USD.
  2. Go offline.
  3. Create a money request in a different currency, i.e. 20 AED.
  4. Make sure you see the message in the IOU Preview saying that total will update when you're back online.
  5. Cancel the 20 AED money request.
  6. Make sure the message is no longer there, as we are not waiting for currency conversion anymore.

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android / native
    • Android / Chrome
    • iOS / native
    • iOS / Safari
    • MacOS / Chrome / Safari
    • MacOS / Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
Screen.Recording.2023-01-02.at.15.20.12.mov
Mobile Web - Chrome
chrome.android.-.Screen.Recording.2023-01-03.at.22.47.18.mov
Mobile Web - Safari
safari.ios.-.RPReplay_Final1672781322.MP4
Desktop
desktop.-.Screen.Recording.2023-01-03.at.21.37.34.mov
iOS
ios.-.Screen.Recording.2023-01-03.at.22.24.34.mov
Android
android.-.Screen.Recording.2023-01-03.at.22.38.30.mov

@youssef-lr youssef-lr force-pushed the youssef_iou_pending_currency_conversion branch from 38ae98f to 7038110 Compare December 5, 2022 17:47
@mountiny mountiny assigned mountiny and youssef-lr and unassigned mountiny Dec 5, 2022
@youssef-lr youssef-lr force-pushed the youssef_iou_pending_currency_conversion branch from 129c34f to c4492d2 Compare December 5, 2022 18:02
Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is quite rather non-trivial logic right there 😄

src/components/ReportActionItem/IOUAction.js Outdated Show resolved Hide resolved
src/components/ReportActionItem/IOUAction.js Outdated Show resolved Hide resolved
src/components/ReportActionItem/IOUAction.js Outdated Show resolved Hide resolved

const shouldShowIOUPreview = (
props.isMostRecentIOUReportAction && Boolean(props.action.originalMessage.IOUReportID)
) || props.action.originalMessage.type === 'pay';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isnt there some const for the pay type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah will update.

Comment on lines 89 to 102
<IOUPreview
pendingAction={lodashGet(props.action, 'pendingAction', null)}
iouReportID={props.action.originalMessage.IOUReportID.toString()}
chatReportID={props.chatReportID}
shouldShowPendingConversionMessage={shouldShowPendingConversionMessage}
onPayButtonPressed={launchDetailsModal}
onPreviewPressed={launchDetailsModal}
containerStyles={[
styles.cursorPointer,
props.isHovered
? styles.iouPreviewBoxHover
: undefined,
]}
isHovered={props.isHovered}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm I think this is the correct indentation, my editor auto indents the file as per eslint rules. I'll double check.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I am wrong, definitely not as smart as IDE 😄

src/libs/IOUUtils.js Outdated Show resolved Hide resolved
@@ -63,7 +64,73 @@ function updateIOUOwnerAndTotal(iouReport, actorEmail, amount, currency, type =
return iouReportUpdate;
}

/**
* Returns the list of IOU actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a bit more context for this method would be useful.

Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
@youssef-lr
Copy link
Contributor Author

That is quite rather non-trivial logic right there 😄

Comments didn't help? 😕

@mountiny
Copy link
Contributor

mountiny commented Dec 5, 2022

Comments didn't help? 😕

Nono, I get it and how it works, but it is definitely not as easy as we would hope, especially for someone who does not have broader understanding of the IOU flow.

@youssef-lr
Copy link
Contributor Author

Nono, I get it and how it works, but it is definitely not as easy as we would hope, especially for someone who does not have broader understanding of the IOU flow.

This is solving more than just the issue mentioned here. I've added these improvements:

  • Cancelling every request offline will remove the IOUPreview, just like when we're online.
  • Cancelling request made offline in a different currency, will revert back to showing the IOUPreview without the pending message, as there is no conversion to be made.
  • Cancelling a request in the report's currency while we have pending request in a different currency, will not update the IOU report locally, to prevent this bug:
Screen.Recording.2022-12-05.at.14.36.25.mov

But yes..I'm definitely open to suggestions to make this more straightforward!

src/components/ReportActionItem/IOUPreview.js Outdated Show resolved Hide resolved
src/components/ReportActionItem/IOUPreview.js Outdated Show resolved Hide resolved
Comment on lines 121 to 131
const areAllRequestsInDifferentCurrencyCancelled = _.every(
pendingCancelledRequestsInDifferentCurrency,
requestTransactionID => _.contains(pendingRequestsInDifferentCurrency, requestTransactionID),
);
if (areAllRequestsInDifferentCurrencyCancelled) {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could simplify this by calling underscore intersection on this https://underscorejs.org/#intersection such that if pendingCancelledRequestsInDifferentCurrency intersection pendingRequestsInDifferentCurrency length === pendingCancelledRequestsInDifferentCurrency.length that means it is proper subset hence the same.

Personally that is a bit easier but i like Venn diagrams so that might be why :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simplified this even more by simply checking if both arrays are identical :D.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e voila

@youssef-lr youssef-lr force-pushed the youssef_iou_pending_currency_conversion branch from 9168f88 to 966e018 Compare December 6, 2022 13:23
Copy link
Collaborator

@mananjadhav mananjadhav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments.

@@ -30,9 +34,21 @@ const propTypes = {
hasOutstandingIOU: PropTypes.bool.isRequired,
}),

/** IOU report data object */
iouReport: PropTypes.shape({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq: We have iouReportPropTypes in pages/iouReportPropTypes. Any specific reason we're creating a new PropTypes.shape here?

Copy link
Contributor Author

@youssef-lr youssef-lr Dec 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I copied this from IOUAction and the good thing is that is shows just what we need to use from the object, in this case only currency is needed. But I'm happy to change this.

/** Whether the IOU is hovered so we can modify its style */
isHovered: PropTypes.bool,

network: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq: again we have networkPropTypes defined, so any specific reason we're defining again instead of importing?

src/languages/en.js Show resolved Hide resolved
src/languages/en.js Show resolved Hide resolved
function getIOUReportActions(reportActions, iouReport, type = '', pendingAction = '', filterRequestsInDifferentCurrency = false) {
return _.chain(reportActions)
.filter(action => action.originalMessage
&& action.actionName === 'IOU'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pick this from CONST? May be REPORT.ACTIONS.TYPE.IOU ?

src/pages/home/report/ReportActionItem.js Show resolved Hide resolved
src/pages/iou/IOUTransactions.js Show resolved Hide resolved
@mananjadhav
Copy link
Collaborator

@youssef-lr Can you also update the Author checklist after fixing the comments? We also need to update the screenshots along with the author checklist. I can only then fill the reviewer checklist.

Meanwhile I'll start testing as the core logic seems to be looking good.


// Default is to create requests offline, if this is specified then we need to remove the pendingAction
if (isOnline) {
moneyRequestAction = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do moneyRequestAction.pendingAction = null or if we want to delete the key then delete moneyReportAction.pendingAction? Any specific reason we are copying it?

Copy link
Contributor Author

@youssef-lr youssef-lr Dec 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah totally, will update. It's just a habit of mine to do immutable stuff 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaah, I see. It's fine then I guess.

expect(IOUUtils.isIOUReportPendingCurrencyConversion(reportActions, iouReport)).toBe(false);
});

test('Cancelling a request made online while wxe have on made offline will show the preview', () => {
Copy link
Contributor

@techievivek techievivek Dec 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test('Cancelling a request made online while wxe have on made offline will show the preview', () => {
test('Cancelling a request made online while we have one made offline will show the pending conversion message', () => {

expect(IOUUtils.isIOUReportPendingCurrencyConversion(reportActions, iouReport)).toBe(true);
});

test('Cancelling a request offline in the report\'s currency when we have requests in a different currency does not show the pending ui', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test('Cancelling a request offline in the report\'s currency when we have requests in a different currency does not show the pending ui', () => {
test('Cancelling a request offline in the report\'s currency when we have requests in a different currency does not show the pending conversion message', () => {

});

describe('isIOUReportPendingCurrencyConversion', () => {
test('Requesting money offline in a different currency shows the IOUReport as pending', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test description doesn't seem consistent with other descriptions, please try to keep it consistent.

Requesting money offline in a different currency will show the pending conversion message

Copy link
Contributor

@techievivek techievivek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good mostly; great work with this PR.

@youssef-lr
Copy link
Contributor Author

Updated! Working on screen recordings.

Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@youssef-lr nice job, havent had time to test but left couple of NABs related to comments. Would you be able to also leave some short info int he details section?

@mananjadhav Will you be able to complete the reviewer's checklist along with Youssef working on the authors list? 🙇

src/libs/IOUUtils.js Outdated Show resolved Hide resolved
src/libs/IOUUtils.js Outdated Show resolved Hide resolved
tests/unit/IOUUtilsTest.js Outdated Show resolved Hide resolved
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
@mananjadhav
Copy link
Collaborator

mananjadhav commented Jan 2, 2023

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android / native
    • Android / Chrome
    • iOS / native
    • iOS / Safari
    • MacOS / Chrome / Safari
    • MacOS / Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
web-offline-multicurrency-iou.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
desktop-offline-multicurrency-iou.mov
iOS
ios-offline-multicurrency-iou.mov
Android
android-offline-multicurrency-iou.mov

@mountiny @techievivek I did start reviewing and testing in parallel. I was able to test this in all platforms except mobile web due to the IP issue! Can I get some help here?

Also @youssef-lr screencasts for platforms excluding Web are pending. Can you please update them?

Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @mananjadhav

@mountiny @techievivek I did start reviewing and testing in parallel. I was able to test this in all platforms except mobile web due to the IP issue! Can I get some help here?

Also @youssef-lr screencasts for platforms excluding Web are pending. Can you please update them?

@youssef-lr Would you be able to update the details section and provide videos for this one so we can merge 🙇 Thanks!

@youssef-lr
Copy link
Contributor Author

Would you be able to update the details section and provide videos for this one so we can merge

On it!

@youssef-lr
Copy link
Contributor Author

@mountiny added screen recordings for all platforms as well as updated the details section.

@mountiny
Copy link
Contributor

mountiny commented Jan 4, 2023

Gonna look into this later tonight or tomorrow, sorry a bit run out of time. Can you merge main in after the reportActionID changes as well to confirm that works fine?

the PR author checklist seems to be failing too @youssef-lr

@mountiny
Copy link
Contributor

mountiny commented Jan 5, 2023

Mobile ios

image

I think there is another improvement we could do down the line although I am worried the logic might get quite complicated.
image

As you can see here, I have created $100 request online, went offline, requested AED20, cancelled the $100 request, then there was no IOUPreview, but we should show it since we only had one currency I guess. then adding another request in another currency AFN20 just showed the preview with that AND no message about calculation as it basically disregards the offline made request.

I would not worry about it now.

completing the PR reviewing checklist

Android chrome also worked fine
image

Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @youssef-lr and @mananjadhav

Issue for payment is here #14015

@mountiny mountiny merged commit 8c675d4 into main Jan 5, 2023
@mountiny mountiny deleted the youssef_iou_pending_currency_conversion branch January 5, 2023 11:54
@OSBotify
Copy link
Contributor

OSBotify commented Jan 5, 2023

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Jan 5, 2023

🚀 Deployed to staging by @mountiny in version: 1.2.49-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Jan 6, 2023

🚀 Deployed to production by @luacmartins in version: 1.2.49-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@sobitneupane
Copy link
Contributor

This PR caused a regression. #14355

@mananjadhav
Copy link
Collaborator

I am tagging this PR to highlight an issue fixed here. All conditions in ternary expressions or left-hand operands on conditional renders, should be boolean. This PR is one of the PRs that uses conditional render with string operands, hence I am tagging it here for the contributors to check.

We've also updated the item in the checklist with this PR to avoid this issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants