From a9a9db54ed0980bfa1af79718c394022427fb510 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 18 Sep 2021 10:27:25 -0400 Subject: [PATCH] Fix profile paging. Fixes #416 --- 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 591b5036..5289b688 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -92,6 +92,7 @@ export class Profile extends Component { 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 17206076..ab2e8985 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",