Skip to content

Commit

Permalink
Merge pull request #58 from laurentC35/dev-paradata
Browse files Browse the repository at this point in the history
Fix initial state
  • Loading branch information
bwerquin authored Jul 6, 2021
2 parents 02704f0 + 15a55a0 commit 500fc89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stromae",
"version": "2.1.2",
"version": "2.1.3",
"private": true,
"dependencies": {
"@axa-fr/react-oidc-context": "^3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/hooks/questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const INIT = 'INIT';
export const COMPLETED = 'COMPLETED';
export const VALIDATED = 'VALIDATED';

export const useQuestionnaireState = (questionnaire, initialState) => {
export const useQuestionnaireState = (questionnaire, initialState = null) => {
const [state, setState] = useState(initialState);

const [initialResponse] = useState(() =>
Expand Down

0 comments on commit 500fc89

Please sign in to comment.