]> Untitled Git - lemmy-ui.git/commitdiff
Fix profile paging. Fixes #416 (#417)
authorDessalines <dessalines@users.noreply.github.com>
Sat, 18 Sep 2021 14:30:03 +0000 (10:30 -0400)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 14:30:03 +0000 (10:30 -0400)
src/shared/components/person/profile.tsx
src/shared/utils.ts

index 591b503681810c89d7cffe487f1f922c401e07d2..5289b688097382a6ee3b2d29b64ff254cdc27a56 100644 (file)
@@ -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);
index 17206076535a34c971718296524b7a9817fbecef..ab2e89855fe907195ce7977ac0ab1859b0415587 100644 (file)
@@ -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",