Welcome to the forum.
could have helped, if there was an element of infection in the urine.
is usually a maturity related problem and it should settle with time , but the time cannot be predicted.
Meet a urologist or a neurologist
, get examined , do scan and urine analysis, rule out problems like infection or stones.
If nothing is there, she needs specific treatment directed to the problem.
More than anything, alarm technique and reward techniques work better.