Check engine light is on

My gas cap doesn’t click once on my 2014 Hyundai Accent and now my check engine light is on. Is there a specific way to put it on or is it broken?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Try matching up the grooves on the cap with the grooves on the tank. Then slowly turn till you hear or feel a click.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0