“Error
Checking equality on undefined is an invalid condition”
The problem stems from the fact that hatch-sample-organizers is being called by sample-dudes, while sample-organizers have the variable original-pycor, but sample-dudes do not. original-pycor is being initialized to undefined, rather than 0. The malfeasant line is here, where no effort is made to do anything sensible if the new variable didn't actually exist in the old hatcher's breed.
Dor Abrahamson writes:
The problem stems from the fact that
hatch-sample-organizers
is being called bysample-dudes
, whilesample-organizers
have the variableoriginal-pycor
, butsample-dudes
do not.original-pycor
is being initialized toundefined
, rather than0
. The malfeasant line is here, where no effort is made to do anything sensible if the new variable didn't actually exist in the old hatcher's breed.Fix incoming shortly.