Skip to content

Added sorting the list of opponents in the "Choose opponent": online users appear before offline users. #2145

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AlinLob
Copy link
Contributor

@AlinLob AlinLob commented Apr 15, 2025

Fixes #1766

…fore offline users.
@AlinLob AlinLob force-pushed the fix/sort-online-then-offline branch from e31030f to cfba364 Compare April 15, 2025 18:14
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.08%. Comparing base (5128691) to head (cfba364).
Report is 75 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2145      +/-   ##
==========================================
- Coverage   59.67%   59.08%   -0.59%     
==========================================
  Files         254      256       +2     
  Lines        5285     5358      +73     
==========================================
+ Hits         3154     3166      +12     
- Misses       2131     2192      +61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -35,29 +35,68 @@ const unchosenTask = { id: null };
const OpponentSelect = memo(({ setOpponent, opponent }) => {
const dispatch = useDispatch();
const currentUserId = useSelector(selectors.currentUserIdSelector);
const { presenceList } = useSelector(selectors.lobbyDataSelector);
console.log('presenceList:', presenceList);
Copy link
Contributor

Choose a reason for hiding this comment

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

let's remove this console.log

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.

Bug: Список игроков при выборе друга
3 participants