Skip to content

Commit

Permalink
Corrigiendo las props
Browse files Browse the repository at this point in the history
  • Loading branch information
uo287627 committed Apr 28, 2024
1 parent 7f37703 commit 9de0abd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/GameSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const GameSettings = ({ setSettings, currentUser }) => {

GameSettings.propTypes = {
setSettings: PropTypes.func.isRequired,
currentUser: PropTypes.func.isRequired,
currentUser: PropTypes.string.isRequired,
};

export default GameSettings;
2 changes: 1 addition & 1 deletion webapp/src/components/RecordList.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const RecordList = ({ username }) => {
};

RecordList.propTypes = {
username: PropTypes.func.isRequired,
username: PropTypes.string.isRequired,
};

export default RecordList;
2 changes: 1 addition & 1 deletion webapp/src/components/RecordList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('RecordList', () => {
});

it('renders record list correctly', async () => {
const { getByText } = render(<RankingList setError={() => {}} username="testuser" />);
const { getByText } = render(<RecordList setError={() => {}} username="testuser" />);

await waitFor(() => {
expect(getByText('Tu historial de jugadas')).toBeInTheDocument();
Expand Down

0 comments on commit 9de0abd

Please sign in to comment.