mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 15:02:02 +08:00
fix prettier (#7071)
This commit is contained in:
parent
7ccb0b882f
commit
1cee8a86f6
@ -106,13 +106,8 @@ export default Ember.Controller.extend(
|
||||
|
||||
@computed("showAllAuthTokens", "model.user_auth_tokens")
|
||||
authTokens(showAllAuthTokens, tokens) {
|
||||
tokens.sort(
|
||||
(a, b) =>
|
||||
a.is_active
|
||||
? -1
|
||||
: b.is_active
|
||||
? 1
|
||||
: b.seen_at.localeCompare(a.seen_at)
|
||||
tokens.sort((a, b) =>
|
||||
a.is_active ? -1 : b.is_active ? 1 : b.seen_at.localeCompare(a.seen_at)
|
||||
);
|
||||
|
||||
return showAllAuthTokens
|
||||
|
Loading…
x
Reference in New Issue
Block a user