Using inefficient old electronics is significantly more environmentally friendly compared to scraping it and using something new.
The vast majority of energy used and environment damage caused by computers happen when they are manufactured. The lifetime energy use afterwards is a tiny fraction.