Skip to content

Commit

Permalink
Fix broken localStorage on glossary page
Browse files Browse the repository at this point in the history
  • Loading branch information
MinThaMie committed Dec 12, 2023
1 parent 3e7d305 commit 4042c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class GlossaryController extends Controller {
.sort((a, b) =>
this.intl
.t(a.title)
.localeCompare(this.intl.t(b.title), localStorage.getItem('locale')),
.localeCompare(this.intl.t(b.title), this.intl.primaryLocale),
)
.map((e) => {
if (caps.includes(this.intl.t(e.title)[0])) {
Expand Down

0 comments on commit 4042c43

Please sign in to comment.