diff --git a/webapp/src/components/GameSettings.js b/webapp/src/components/GameSettings.js index c2215eb0..39351bf5 100644 --- a/webapp/src/components/GameSettings.js +++ b/webapp/src/components/GameSettings.js @@ -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; diff --git a/webapp/src/components/RecordList.js b/webapp/src/components/RecordList.js index 2fb559a2..03b6090d 100644 --- a/webapp/src/components/RecordList.js +++ b/webapp/src/components/RecordList.js @@ -59,7 +59,7 @@ const RecordList = ({ username }) => { }; RecordList.propTypes = { - username: PropTypes.func.isRequired, + username: PropTypes.string.isRequired, }; export default RecordList; diff --git a/webapp/src/components/RecordList.test.js b/webapp/src/components/RecordList.test.js index 60871daa..5945fd6d 100644 --- a/webapp/src/components/RecordList.test.js +++ b/webapp/src/components/RecordList.test.js @@ -29,7 +29,7 @@ describe('RecordList', () => { }); it('renders record list correctly', async () => { - const { getByText } = render( {}} username="testuser" />); + const { getByText } = render( {}} username="testuser" />); await waitFor(() => { expect(getByText('Tu historial de jugadas')).toBeInTheDocument();