Skip to content

Commit

Permalink
D-cog, funny memory, trails B and speech recording
Browse files Browse the repository at this point in the history
  • Loading branch information
sarithapillai8 committed Nov 29, 2024
1 parent 875716c commit 14bb0b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/ActivityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default function ActivityCard({
const [helpAnchor, setHelpAnchor] = useState<Element>()
const [showGrid, setShowGrid] = useState<boolean>(forceDefaultGrid || Boolean(freeText.length))
const { t } = useTranslation()
console.log(activity)
const selectedActivity = activity
events.sort((a, b) => a.timestamp - b.timestamp)
let each = Object.values(
Expand Down
1 change: 0 additions & 1 deletion src/components/Participant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ export default function Participant({
useEffect(() => {
setLoading(true)
LAMP.Activity.allByParticipant(participant.id, null).then((activities) => {
console.log(activities)
setActivities(activities)
props.activeTab(tab, participant.id)
let language = !!localStorage.getItem("LAMP_user_" + participant.id)
Expand Down
3 changes: 0 additions & 3 deletions src/components/PreventSelectedActivities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,7 @@ export const strategies = {
(slices ?? [])
.filter((x, idx) => (scopedItem !== undefined ? idx === scopedItem : true))
.map((x, idx) => {
console.log(slices)

let question = (Array.isArray(activity.settings) ? activity.settings : []).filter((y) => y.text === x.item)[0]
console.log(activity)
if (!!question && typeof x?.value !== "undefined")
return ["Yes", "True"].includes(x.value) ? 1 : ["No", "False"].includes(x.value) ? 0 : Number(x.value) || 0
else if (!!question && !!!question.options) return Math.max((question.options || []).indexOf(x.value), 0)
Expand Down

0 comments on commit 14bb0b0

Please sign in to comment.