Christopher Gleenie, of St David's Way, Porthcawl, admitted breaking the glass panel of W and B Davies Opticians on John Street in the town.
Catherine Collins, prosecuting, said police officers were informed and arrested Gleenie.
Magistrates were told that Gleenie, the barman at the Rose & Crown in Nottage, had an outstanding fine of pounds 120 from a previous offence of criminal damage in April.