It’s very likely the problem stems from incomplete removal of whatever caulk was around the tub before the novice repair ...
Then use your knife or tool to scrape along the tub or shower floor. Photo 2: Loosen and remove the remaining caulk. Squirt caulk remover on all the remaining caulk and let it do the hard work.