for $8,000 I have found a used Nissan leaf with a good battery I read online you can upgrade battery but the battery in good.
Personally I’m not a fan of modern Nissan. They produce such garbage that you’d be better off finding a better car at the junkyard. However, that car is almost brand new, and won’t start to fall apart (hopefully) for a few years. If you really like it, do what you like. Me personally I think the Leaf’s look hideous and Nissan quality is junk. If you buy that car planning on using it as a daily driver for years, I would absolutely think twice.
You did not mention the mileage.
Regardless of that, I don't think it is a good buy. It is 3 year old electric Nissan. I bet if you check out the price of battery, you will change your mind.