Fix profile paging. Fixes #416 (#417)

This commit is contained in:
Dessalines 2021-09-18 10:30:03 -04:00 committed by GitHub
parent 4b23b78efe
commit 4ec200ae6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View 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);

View 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",