mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Using strict equality in the JS example for City Quiz (#6373)
Co-authored-by: Nikhil Gupta <nikhil.gupta5667@gmai.com>
This commit is contained in:
@@ -84,7 +84,7 @@ function submitForm(answer) {
|
||||
// Pretend it's hitting the network.
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
if (answer.toLowerCase() == 'istanbul') {
|
||||
if (answer.toLowerCase() === 'istanbul') {
|
||||
resolve();
|
||||
} else {
|
||||
reject(new Error('Good guess but a wrong answer. Try again!'));
|
||||
|
||||
Reference in New Issue
Block a user