(Bloomberg) -- JPMorgan Chase & Co. agreed to resolve a suit by a former vice president in its anti-corruption unit claiming she was marginalized, mistreated and then fired from the bank for complaining about compliance failures.

The bank and Shaquala Williams told US District Judge Jed Rakoff on Monday they had “reached a resolution as to all terms,” avoiding a trial that was set for Nov. 7, according to a court filing. Details of the settlement were not disclosed, and the bank declined to comment.

Williams, who is Black, claimed she was fired in October 2019 after she raised concerns that the bank may have broken the law by misleading regulators about its anti-corruption, anti-money-laundering, economic sanctions and risk governance programs. Williams joined JPMorgan in July 2018 and helped manage a program that seeks to prevent bank employees from getting business corruptly. 

JPMorgan argued that Williams was terminated because of “chronic deficiencies” in her performance and behavior, documented in complaints from her managers and co-workers. The bank claims it investigated many issues that were raised by Williams. 

In July, Rakoff ruled that a jury must determine whether Williams would have been fired if it hadn’t been for her raising concerns about compliance at JPMorgan.

The case is Williams v. JPMorgan Chase & Co., 21-cv-09326, U.S. District Court, Southern District of New York (Manhattan).

(Updates with bank declining to comment on settlement.)

©2022 Bloomberg L.P.