Hi @tohadoe,
The way i'm interpreting your post is that instead of submitting a peer review, you instead submitted that work as a resubmission of your assignment. Does that seem correct? If that's the case, your teacher should be able to see your previous submission still. I would highly encourage you to reach out to your teacher to let them know what happened ASAP by whatever their preferred contact method is (email, chat, canvas inbox, phone, etc). Hopefully they will be understanding and grade your prior correct submission and not the peer review.
Hope this helps a bit! If i've misunderstood the situation completely, please also let me know that as well.
-Chris