Fixed toggle of shared badges

The toggle of shared badges had broken, and I just want to make sure that my fixing it doesn't conflict with anyone else's work. @bigeasy @demarius will you check it out?