Congrats on the fix.
It is a safety so that you can't drive your cart while it is still plugged in.
They are expensive and some choose not to fix them.
As a reminder, put your charging cord through the steering wheel when charging so you don't forget it's plugged in.