A shoplifter walked out of a store with a rail full of clothes in a theft that "lacked sophistication", a court has heard.
Lone father-of-three Jake Doyle (25) was caught after an undercover garda saw him taking the goods - 13 tops worth €455.
He was then seen on CCTV footage stealing from the same city centre store the day before.
Doyle, of Ballybough House, Ballybough, admitted theft.
Judge Bryan Smyth said he would consider suspending a prison sentence if Doyle paid compensation for the earlier theft.
Sgt Zita Woods told Dublin District Court the incident happened at Urban Outfitters on Temple Bar Square last May 27.
A plain clothes garda was on duty at 11.50am when he saw Doyle and a female co-accused grabbing a rail of 13 tops and walking out of the store.
The clothes were returned to the shop undamaged after Doyle was caught and arrested.
When CCTV was checked, Doyle was seen going into the shop the day before and stealing seven T-shirts worth €315.
These items were not recovered.
Sgt Woods said she believed the thefts were opportunistic.
The offences happened at the worst point of an addiction for Doyle, his solicitor Lorraine Stephens said.
There was a "lack of sophistication" in what had happened, which was an "act of desperation".
Doyle was now "doing very well" and had a project worker who spoke very highly of him.
The accused, who was "eff- ectively a lone parent", was more than willing to pay compensation but was on a CE scheme and was of "very limited means", Ms Stephens said.
Judge Smyth adjourned the case to July.