Updated check to resend API request if it hasn't gone through