Skip to content

Commit a0daf24

Browse files
committed
me.index: Remove unnecessary this.get() calls
1 parent a71cc3d commit a0daf24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/me/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class MeIndexController extends Controller {
2828
}
2929

3030
setAllEmailNotifications(value) {
31-
this.get('ownedCrates').forEach(c => {
31+
this.ownedCrates.forEach(c => {
3232
c.set('email_notifications', value);
3333
});
3434
}
@@ -41,7 +41,7 @@ export default class MeIndexController extends Controller {
4141
await ajax(`/api/v1/me/email_notifications`, {
4242
method: 'PUT',
4343
body: JSON.stringify(
44-
this.get('ownedCrates').map(c => ({
44+
this.ownedCrates.map(c => ({
4545
id: parseInt(c.id, 10),
4646
email_notifications: c.email_notifications,
4747
})),

0 commit comments

Comments
 (0)