summaryrefslogtreecommitdiff
path: root/src/services/updates.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/updates.ts')
-rw-r--r--src/services/updates.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/updates.ts b/src/services/updates.ts
index b58609b..f8993c0 100644
--- a/src/services/updates.ts
+++ b/src/services/updates.ts
@@ -1,3 +1,4 @@
+import { capitalize } from "@/utils/strings";
import { execAsync, GLib, GObject, property, readFileAsync, register, writeFileAsync } from "astal";
import { updates as config } from "config";
@@ -124,7 +125,7 @@ export default class Updates extends GObject.Object {
repo: await this.getRepo(r),
updates: [],
icon: this.getRepoIcon(r),
- name: r[0].toUpperCase() + r.slice(1) + " repository",
+ name: capitalize(r) + " repository",
}))
);