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:
parent
4bd5acec47
commit
c17a28f875
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue