Skip to content

Commit

Permalink
comments for later troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
katconnors committed Nov 19, 2024
1 parent 08bca74 commit f289283
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/benchmarks/[benchmark_id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ const BenchmarkPage = () => {
(task.trials.length === 0 ||
task.trials[task.trials.length - 1]?.submitted === true)
) {
// FIXME: This mutation runs twice if the page is loaded from the link in the instructions page
// It only runs once if the page is loaded at this URL from scratch
addTrialMutation.mutate({
task_id: task.task_id,
success: 0,
Expand Down Expand Up @@ -273,8 +275,8 @@ const BenchmarkPage = () => {
{hasInputChanged || updateTrialMutation.isLoading
? "Saving..."
: updateTrialMutation.isError
? "uh oh"
: "Saved to Cloud"}
? "uh oh"
: "Saved to Cloud"}
</div>

<Grid container spacing={2}>
Expand Down

0 comments on commit f289283

Please sign in to comment.