From b914499a90a779025254b62e2562cbd7869e410d Mon Sep 17 00:00:00 2001
From: Federico Brigante <me@fregante.com>
Date: Mon, 16 Oct 2023 19:49:57 +0800
Subject: Fix `textContent` types (#6983)

---
 source/features/one-click-pr-or-gist.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'source/features/one-click-pr-or-gist.tsx')

diff --git a/source/features/one-click-pr-or-gist.tsx b/source/features/one-click-pr-or-gist.tsx
index 70d34796..4b964bab 100644
--- a/source/features/one-click-pr-or-gist.tsx
+++ b/source/features/one-click-pr-or-gist.tsx
@@ -15,8 +15,8 @@ function init(): void | false {
 	}
 
 	for (const dropdownItem of select.all('.select-menu-item', initialGroupedButtons)) {
-		let title = select('.select-menu-item-heading', dropdownItem)!.textContent!.trim();
-		const description = select('.description', dropdownItem)!.textContent!.trim();
+		let title = select('.select-menu-item-heading', dropdownItem)!.textContent.trim();
+		const description = select('.description', dropdownItem)!.textContent.trim();
 		const radioButton = select('input[type=radio]', dropdownItem)!;
 		const classList = ['btn', 'ml-2', 'tooltipped', 'tooltipped-s'];
 
-- 
cgit v1.2.3

