Either way works, though I presume the author's intention was #2. In any case, the singular verb 'was' sounds awful there so far away from the grammatical subject and so near 'factors'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.