A little girl of four was left home alone while her mother went out to work.
Police went to her home in Mold, North Wales, following an anonymous tip off to social workers.
They found the house in an unkempt condition and the girl was home alone with the front door unlocked.
The mother had gone out in the car to visit customers.
The enormity of what she had done had not dawned on her until later, Flintshire Magistrates' court heard .
She had since given up work and her husband has changed his working pattern her solicitor Bethan Jones explained.
The mother, who had no previous convictions, admitted neglecting the child in a way likely to cause her unnecessary suffering.
She was placed on a 12 month community order with supervision and she was sent on a "positive thinking" workbook programme run by the probation service.
The woman, who was ordered to pay £85 costs, was told by District Judge Gwyn Jones that due to her then working pattern, she "became oblivious to the risks" posed to her youngest child by being left at home alone.
More top news
Fine and dry at first but becoming largely cloudy with outbreaks of rain or drizzle.
First Minister Carwyn Jones says Wales must not get a bad deal in Brexit negotiations. He was speaking at meeting of British-Irish Council.
Isolated showers may last into the late evening, but a dry night.