Skip to content

Commit

Permalink
lint: Remove unused id variable and formatted the rest of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Dec 19, 2023
1 parent 56c2f11 commit 05c103c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/src/components/Trial/Trial.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Trial = ({
);

const checkBreakRound = (values, breakConditions) => {
switch(Object.keys(breakConditions)[0]) {
switch (Object.keys(breakConditions)[0]) {
case 'EQUALS':
return values.some(val => breakConditions['EQUALS'].includes(val));
case 'NOT':
Expand All @@ -112,7 +112,8 @@ const Trial = ({
if (playback.player_type === 'BUTTON') {
startTime.current = getCurrentTime();
}
const id = setTimeout( () => {makeResult({type: "time_passed",});} , config.auto_advance_timer);

setTimeout(() => { makeResult({ type: "time_passed", }); }, config.auto_advance_timer);
} else {

makeResult({
Expand Down Expand Up @@ -158,9 +159,9 @@ const Trial = ({
skipLabel={feedback_form.skip_label}
isSkippable={feedback_form.is_skippable}
onResult={makeResult}
// emphasizeTitle={feedback_form.is_profile}
// to do: if we want left-aligned text with a pink divider,
// make this style option available again (used in Question.scss)
// emphasizeTitle={feedback_form.is_profile}
// to do: if we want left-aligned text with a pink divider,
// make this style option available again (used in Question.scss)
/>
)}
{preloadReady && !feedback_form && config.show_continue_button && (
Expand Down

0 comments on commit 05c103c

Please sign in to comment.