This pull request includes a modification to the Users function in the client/routes/account/users.jsx file. The change adds a condition to check the showMore variable before executing the logic inside the if statement.
The most important change is:
client/routes/account/users.jsx: Added a condition to check the showMore variable in the if statement that checks if the length of the users array is less than SKIP. This modification ensures that the logic inside the if statement is executed only when showMore is true and the length of users is less than SKIP.
by doing this we will prevent an endless loop
copilot
This pull request includes a modification to the
Users
function in theclient/routes/account/users.jsx
file. The change adds a condition to check theshowMore
variable before executing the logic inside theif
statement.The most important change is:
client/routes/account/users.jsx
: Added a condition to check theshowMore
variable in theif
statement that checks if the length of theusers
array is less thanSKIP
. This modification ensures that the logic inside theif
statement is executed only whenshowMore
is true and the length ofusers
is less thanSKIP
.