2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Using const instead of var while declaring

This commit is contained in:
Vinoth Kannan 2017-12-11 14:26:21 +05:30
parent 4bd5acec47
commit c17a28f875

View file

@ -11,7 +11,7 @@ export default Ember.Component.extend(BadgeSelectController, {
save() {
this.setProperties({ saved: false, saving: true });
var badge_id = this.get('selectedUserBadgeId') || 0;
const badge_id = this.get('selectedUserBadgeId') || 0;
ajax(this.get('user.path') + "/preferences/badge_title", {
type: "PUT",