summaryrefslogtreecommitdiff
path: root/source/github-helpers/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/github-helpers/index.ts')
-rw-r--r--source/github-helpers/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/github-helpers/index.ts b/source/github-helpers/index.ts
index 156fe18a..c42790a6 100644
--- a/source/github-helpers/index.ts
+++ b/source/github-helpers/index.ts
@@ -9,9 +9,9 @@ import * as pageDetect from 'github-url-detection';
export const getUsername = onetime(pageDetect.utils.getUsername);
export const {getRepositoryInfo: getRepo, getCleanPathname} = pageDetect.utils;
-export const getConversationNumber = (): string | undefined => {
+export const getConversationNumber = (): number | undefined => {
if (pageDetect.isPR() || pageDetect.isIssue()) {
- return location.pathname.split('/')[4];
+ return Number(location.pathname.split('/')[4]);
}
return undefined;