Update main.js

!this.data.badge.attempts => !this.data.badge.data.attempts ?