]> Untitled Git - lemmy-ui.git/commitdiff
fix capitalization (#1467)
authorAlec Armbruster <35377827+alectrocute@users.noreply.github.com>
Thu, 22 Jun 2023 12:58:51 +0000 (08:58 -0400)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 12:58:51 +0000 (08:58 -0400)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
src/shared/components/post/post-listing.tsx

index bbc0289209c0c1a82d4eb84945310fc3b21d72d1..b9ad5ebc0f428d6b1569e27bc5a3348a6fe006b6 100644 (file)
@@ -1,6 +1,11 @@
 import { myAuthRequired, newVote, showScores } from "@utils/app";
 import { canShare, share } from "@utils/browser";
-import { futureDaysToUnixTime, hostname, numToSI } from "@utils/helpers";
+import {
+  capitalizeFirstLetter,
+  futureDaysToUnixTime,
+  hostname,
+  numToSI,
+} from "@utils/helpers";
 import { isImage, isVideo } from "@utils/media";
 import {
   amAdmin,
@@ -981,7 +986,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
               classes={classNames("me-1", { "text-danger": locked })}
               inline
             />
-            {label}
+            {capitalizeFirstLetter(label)}
           </>
         )}
       </button>