promptForAmount was setting the value as string instead of int