Updated the parseFloat to parseInt