Skip to content

Commit

Permalink
Merge pull request #95 from AxessLab/fix/finger-placement
Browse files Browse the repository at this point in the history
Fix incorrect fetch of variable
  • Loading branch information
ICTEnablers authored Nov 6, 2019
2 parents a9ef17a + 6d37965 commit 1487323
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/task/task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ const Task = props => {
handleWrongInputAction(event.key);
wrongAudioElement.current.setAttribute('currentTime', '0');
const promise = wrongAudioElement.current.play().then(() => {
const guidance = fingerPlacement(task.text.charAt(currentPos));
speak(guidance).then(textURL => {
speak(fingerPlacement(task.exercise[currentPos].text)).then(textURL => {
if (textURL !== '' && audioElement.current) {
audioElement.current.pause();
audioElement.current.setAttribute('src', '');
Expand Down

0 comments on commit 1487323

Please sign in to comment.