You should have an xray of the finger to check for fracture
If there is, need to make sure there is no evidence of joint subluxation. The vast majority of mallet fingers are treated with splinting of the finger fully extended straight. If fracture with subluxation, needs to be pinned. Good luck.