mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 11:38:37 +00:00
fix typo
This commit is contained in:
parent
92103dbb06
commit
4dadcbcb49
@ -69,7 +69,7 @@ function App() {
|
|||||||
_pattern = parse(code);
|
_pattern = parse(code);
|
||||||
if (_pattern?.constructor?.name !== 'Pattern') {
|
if (_pattern?.constructor?.name !== 'Pattern') {
|
||||||
const message = `got "${typeof _pattern}" instead of pattern`;
|
const message = `got "${typeof _pattern}" instead of pattern`;
|
||||||
throw new Error(message + (typeof _pattern === 'function' ? 'did you foget to call a function?' : ''));
|
throw new Error(message + (typeof _pattern === 'function' ? ', did you forget to call a function?' : '.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setPattern(() => _pattern); // need arrow function here! otherwise if user returns a function, react will think it's a state reducer
|
setPattern(() => _pattern); // need arrow function here! otherwise if user returns a function, react will think it's a state reducer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user