Airbag not professionally repaired after front damage

I unfortunately bought a car 6 months ago, which had a front damage, is also in the purchase contract so inside. Now I was told, that the airbag must have opened on the driver’s side, because the flap no longer sits richitg. Had the dealer allowed me to sell the car with a not expertly repaired damage (airbag) at all, so I meant, if an airbag goes open, you have to replace the, but apparently he was only reingspotted and shut. Now I know no further, can I go back to the dealer and he has to judge this wisely?