The difference is only in meaning, and there is no a grammatical error because both 'affect' and 'effect' can be used as verbs.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
inggrisdespite the grammatical error (made) by using the word “effected” rather than “affected”."made" or "committed" or "created" is left out. It is perhaps a little sloppy, but the resulting sentence is still understandable.