Skip to content

Commit

Permalink
fix(client): selector return, invalid prop val (freeCodeCamp#49447)
Browse files Browse the repository at this point in the history
* fix(client): correctly return type from selector

* fix(client): remove incorrect prop [button-spacer]
  • Loading branch information
ShaunSHamilton authored Feb 20, 2023
1 parent 69c40b3 commit e8b010d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/src/components/formHelpers/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export const StrictSolutionForm = ({
<FormFields formFields={formFields} options={options} />
<BlockSaveButton
disabled={(pristine && !enableSubmit) || (error as boolean)}
bgSize='none'
>
{buttonText}
</BlockSaveButton>
Expand Down
4 changes: 4 additions & 0 deletions client/src/templates/Challenges/redux/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export const currentBlockIdsSelector = state => {
challengeType
);

if (!currentBlockIds) {
return [];
}

return currentBlockIds;
};

Expand Down

0 comments on commit e8b010d

Please sign in to comment.