mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(client): selector return, invalid prop val (#49447)
* fix(client): correctly return type from selector * fix(client): remove incorrect prop [button-spacer]
This commit is contained in:
parent
69c40b31c4
commit
e8b010d7e2
@ -103,7 +103,6 @@ export const StrictSolutionForm = ({
|
||||
<FormFields formFields={formFields} options={options} />
|
||||
<BlockSaveButton
|
||||
disabled={(pristine && !enableSubmit) || (error as boolean)}
|
||||
bgSize='none'
|
||||
>
|
||||
{buttonText}
|
||||
</BlockSaveButton>
|
||||
|
||||
@ -101,6 +101,10 @@ export const currentBlockIdsSelector = state => {
|
||||
challengeType
|
||||
);
|
||||
|
||||
if (!currentBlockIds) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return currentBlockIds;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user