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

Fix app crashes tapping the room name in the chat #6741

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

luacmartins
Copy link
Contributor

@luacmartins luacmartins commented Dec 13, 2021

Details

Prevents text from rendering inside a View by using Boolean(). Adding CP Staging label as it fixes a deploy blocker.

Fixed Issues

$ #6740

Tests

  1. Launch the app
  2. Log in with an Expensify account
  3. Tap on+ button and Select New Room
  4. Create a room
  5. After room created tap on room name in the chat page
  6. Verify that an empty Details page shows up and the app doesn't crash

QA Steps

Steps above.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

ios.mov

Android

android.mov

@luacmartins luacmartins self-assigned this Dec 13, 2021
@luacmartins luacmartins requested a review from a team as a code owner December 13, 2021 21:51
@github-actions
Copy link
Contributor

⚠️ ⚠️ Heads up! This pull request has the CP Staging label. ⚠️ ⚠️
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

@MelvinBot MelvinBot requested review from marcaaron and removed request for a team December 13, 2021 21:51
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.

Approving this as I have worked on the PR which is fixed other deploy blocker, but this one followed from it.

@@ -91,7 +91,7 @@ const ReportParticipantsPage = (props) => {
styles.containerWithSpaceBetween,
]}
>
{participants.length
{Boolean(participants.length)
Copy link
Contributor

Choose a reason for hiding this comment

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

NAB, I usually prefer to compare length like participants.length > 0 since that is a more explicit "boolean" version of checking the length of a string - but this works too.

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'll keep that in mind for next time.

@luacmartins
Copy link
Contributor Author

Self-merging with approval.

@luacmartins luacmartins merged commit a294333 into main Dec 13, 2021
@luacmartins luacmartins deleted the cmartins-newRoomDetails branch December 13, 2021 22:41
OSBotify pushed a commit that referenced this pull request Dec 13, 2021
Fix app crashes tapping the room name in the chat

(cherry picked from commit a294333)
@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @luacmartins in version: 1.1.20-3 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Julesssss in version: 1.1.21-1 🚀

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

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.

4 participants