]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/person/inbox.tsx
Changing all bigints to numbers
[lemmy-ui.git] / src / shared / components / person / inbox.tsx
index 692b9ddf9eb2e6a12040b4166bacb971958bcd76..a39977917480aa13c8713abc0ff2fa8e12d65338 100644 (file)
@@ -99,7 +99,7 @@ export class Inbox extends Component<any, InboxState> {
     mentions: [],
     messages: [],
     combined: [],
-    sort: CommentSortType.New,
+    sort: "New",
     page: 1,
     siteRes: this.isoData.site_res,
     loading: true,
@@ -489,13 +489,13 @@ export class Inbox extends Component<any, InboxState> {
   static fetchInitialData(req: InitialFetchRequest): Promise<any>[] {
     let promises: Promise<any>[] = [];
 
-    let sort = CommentSortType.New;
+    let sort: CommentSortType = "New";
     let auth = req.auth;
 
     if (auth) {
       // It can be /u/me, or /username/1
       let repliesForm: GetReplies = {
-        sort,
+        sort: "New",
         unread_only: true,
         page: 1,
         limit: fetchLimit,