From: Dessalines Date: Sat, 18 Sep 2021 14:30:03 +0000 (-0400) Subject: Fix profile paging. Fixes #416 (#417) X-Git-Url: http://these/git/?a=commitdiff_plain;h=4ec200ae6d9fae04ef742c6b321f58cc6ffbd841;p=lemmy-ui.git Fix profile paging. Fixes #416 (#417) --- 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 { 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",