The article doesn’t imply genetics have no effect, it just treats them as a baseline which are then adjusted over time according to the person’s lived experiences.
Likewise with mental disorders and depression, the “solution” you claim it states as “not being mentally ill” is the outcome of a process, not the process itself.