If your friend lost the lawsuit over the non-compete clause, your friend can consider an appeal, but is otherwise stuck. If the court erred in its findings, that is something that would be addressed on appeal.