mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-24 07:01:35 -04:00
fix(curriculum): enforce powerSource initial state value in step 3 (#65666)
This commit is contained in:
@@ -38,7 +38,7 @@ Your `useState` hook for `powerSource` should have an initial value of empty str
|
||||
const _a = eval(script);
|
||||
const _b = await __helpers.prepTestComponent(exports.SuperheroForm);
|
||||
|
||||
assert.equal(abuseState.calls[2]?.[0], "");
|
||||
assert.strictEqual(abuseState.calls[2]?.[0], "");
|
||||
```
|
||||
|
||||
You should use array destructuring to set a `powers` state variable and a `setPowers` setter.
|
||||
|
||||
Reference in New Issue
Block a user