Update main.js

Fixed pricing bug.