add bn14 location

This commit is contained in:
Olivier Gagnon
2021-12-04 23:47:53 -05:00
parent a845c5ac8f
commit 133d80749d
8 changed files with 45 additions and 25 deletions
+4 -4
View File
@@ -31,11 +31,11 @@ export function CorruptableText(props: IProps): JSX.Element {
counter = Math.random() * 5;
const index = Math.random() * content.length;
const letter = content.charAt(index);
setContent(replace(content, index, randomize(letter)));
setContent((content) => replace(content, index, randomize(letter)));
setTimeout(() => {
setContent(content);
}, 50);
}, 100);
setContent((content) => replace(content, index, letter));
}, 500);
}, 20);
return () => {
clearInterval(id);