Skip to content

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Jun 30, 2025

fix: Prevent rendering of empty phone number in UserList

@fit2bot fit2bot requested a review from a team June 30, 2025 02:55
@@ -216,7 +216,7 @@ export default {
width: '120px',
formatter: (row) => {
const phoneObj = row.phone
return <div>{phoneObj?.code}{phoneObj?.phone}</div>
return phoneObj?.phone ? <div>{phoneObj?.code}{phoneObj?.phone}</div> : ''
}
},
login_blocked: {
Copy link
Member

Choose a reason for hiding this comment

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

There is no obvious issue or difference highlighted between the two code snippets provided. As it's a static analysis, there aren't enough data points to pinpoint any deviations.

Regarding recommendations for improvement:

  1. Use ES6 template string syntax `` instead of concatenation in JavaScript, like: [...array].map(function(element){return element};).join(;`)
  2. Keep lines short and consistent with indentation style ('8 ', 'tab') if you are using VSCode or similar editors
  3. For formatting issues, consider adding newlines before <div>...</div> tags if nesting is too deep

In summary, both code snippets look good but have not been thoroughly checked for discrepancies since this was an automated check on the current date (2025-06-30). If you need detailed checks or more sophisticated reviews, please provide specifics about what needs reviewing!

@w940853815 w940853815 merged commit 083b776 into dev Jun 30, 2025
3 of 4 checks passed
@w940853815 w940853815 deleted the pr@dev@perf_phone_display branch June 30, 2025 02:55
Copy link

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

Successfully merging this pull request may close these issues.

3 participants