Correct option is B
The error lies in part (B).
The error in the sentence is in the part (B). The verb "learn" should be in the past participle form which is "learned".
The error in the sentence is a verb tense inconsistency. The verb "learn" in part (B) of the sentence is in the present tense ("learn"), but the sentence is describing a past action because it mentions that she attended the workshop in the past ("After attending the workshop").
Here's the corrected sentence:
"After attending the workshop on digital marketing, she learned valuable strategies to enhance her online business."