Fix double spaces in IOU confirmation message#14768
Conversation
|
@thesahindia @dangrous One of you needs to 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] |
|
Removing C+ as this is a pretty simple change 😅 |
dangrous
left a comment
There was a problem hiding this comment.
This works, but do we want to take this opportunity to translate paymentMethodMessage which isn't currently translated?
Separately, on main when I do this, it appears with the double space first, but then if I move to another view and back (e.g. clicking on the payment details) it then fixes itself and removes the double space. It doesn't seem to mess up this PR, so it's probably fine, but did you experience that and/or do you know why it's happening?
Good point, but, the final IOU confirmation message actually comes from the backend, and replaces the optimistic one. Hence if we translate the optimistic message, it will be overwritten by the message coming from the backend. And this also answers your question below:
The message coming from the backend doesn't have double spaces. Check this function here responsible for creating the IOU confirmation message. |
|
Oh, okay - that makes sense. I didn't realize it was coming from two sources and this was just the optimistic one. All good then! (I can make a separate issue/bug report to translate that text. I wonder if we did it only in English since the grammar might be different in Spanish and so the string replacement won't work.) |
Reviewer Checklist
Screenshots/VideosiOS |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.2.64-4 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|





Details
Fixed Issues
$ #14737
Tests
Settled up elsewhereOffline tests
Same as above.
QA Steps
Settled up elsewherePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Screen.Recording.2023-02-02.at.20.08.02.mov
Mobile Web - Chrome
See recording above, this should work on all platform as we're just changing text.
Mobile Web - Safari
See recording above, this should work on all platform as we're just changing text.
Desktop
See recording above, this should work on all platform as we're just changing text.
iOS
See recording above, this should work on all platform as we're just changing text.
Android
See recording above, this should work on all platform as we're just changing text.