fix(curriculum): enforce heroName and realName initial state value in step 2 (#65856)
Some checks failed
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
i18n - Upload Client UI / Client (push) Has been cancelled
i18n - Upload Curriculum / Learn (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled

This commit is contained in:
Jeevankumar S 2026-02-12 18:45:25 +05:30 committed by GitHub
parent 9b7a08bafb
commit 7f27d8e005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ Your `useState` hook for `heroName` should have an initial value of empty string
const _a = eval(script);
const _b = await __helpers.prepTestComponent(exports.SuperheroForm);
assert.equal(abuseState.calls[0]?.[0], "");
assert.strictEqual(abuseState.calls[0]?.[0], "");
```
You should use the array destructuring syntax to set a `realName` state variable and a `setRealName` setter.
@ -70,7 +70,7 @@ Your `useState` hook for `realName` should have an initial value of empty string
const _a = eval(script);
const _b = await __helpers.prepTestComponent(exports.SuperheroForm);
assert.equal(abuseState.calls[1]?.[0], "");
assert.strictEqual(abuseState.calls[1]?.[0], "");
```
# --seed--