From 4ec200ae6d9fae04ef742c6b321f58cc6ffbd841 Mon Sep 17 00:00:00 2001 From: Dessalines <dessalines@users.noreply.github.com> Date: Sat, 18 Sep 2021 10:30:03 -0400 Subject: [PATCH] Fix profile paging. Fixes #416 (#417) --- src/shared/components/person/profile.tsx | 1 + src/shared/utils.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 591b503..5289b68 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -92,6 +92,7 @@ export class Profile extends Component<any, ProfileState> { this.state = this.emptyState; this.handleSortChange = this.handleSortChange.bind(this); + this.handlePageChange = this.handlePageChange.bind(this); this.parseMessage = this.parseMessage.bind(this); this.subscription = wsSubscribe(this.parseMessage); diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 1720607..ab2e898 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1432,8 +1432,8 @@ export function initializeSite(site: GetSiteResponse) { i18n.changeLanguage(getLanguage()); } -let SHORTNUM_SI_FORMAT = new Intl.NumberFormat("en-US", { - maximumFractionDigits: 1, +const SHORTNUM_SI_FORMAT = new Intl.NumberFormat("en-US", { + maximumSignificantDigits: 3, //@ts-ignore notation: "compact", compactDisplay: "short", -- 2.44.1