In the note on Genesis 38:8
38:8 perform the duty of a brother-in-law to With the death of Er, his brother, Onan, became responsible for providing children to Onan’s wife. This custom is known as levirate marriage and is described in Deut 25
i think its should say Er's wife, not Onan's wife