Skip to content

Commit

Permalink
add await to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
juandans01 committed May 15, 2024
1 parent 14748f8 commit b0bfef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scenes/Quiz/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const quizCreation = async() => {
helper: "https://helper-dap-09.shira.app/",
timePrecisionSeconds: 300
});
task.sendMeasurement(true);
await task.sendMeasurement(true);
console.log('sent;')
}
}
Expand All @@ -35,7 +35,7 @@ const quizEnd = async() => {
helper: "https://helper-dap-09.shira.app/",
timePrecisionSeconds: 300
});
task.sendMeasurement(true);
await task.sendMeasurement(true);
console.log('sent;')
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/Welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const WelcomeScene: FunctionComponent = () => {
helper: "https://helper-dap-09.shira.app/",
timePrecisionSeconds: 300
});
task.sendMeasurement(true); // your measurement here
await task.sendMeasurement(true); // your measurement here
console.log('sent;')
}
}
Expand Down

0 comments on commit b0bfef0

Please sign in to comment.