Folding Pedal Issue

I own a Tern Link P9 and had no issues with it until last night when i found myself upclose and personal with the street. I am posting this because I don't want anyone else to be stupid like me if you get this bike replace the pedals immediately they are garbage. I bought the bike like two months ago and had no previous issues.