The right decision would have been leaving it in the bank account so that the bank can deduct it after they discovered the error.
Normally, when there is an accidentally deposit , the bank will remove the duplicate transaction.
Hence, It is important not to spend the accidental deposit but rather, one can contact the bank right away and report the error.
Read more about accidentally deposit
brainly.com/question/11762491
#SPJ1