From 5170fd7b245c1547a4a08304ba73a68dcd2fa6d0 Mon Sep 17 00:00:00 2001 From: hfdem Date: Thu, 19 Sep 2024 20:46:29 +0800 Subject: [PATCH] fix: remove compile-time warnings --- client/src/pages/messaging/index.tsx | 2 +- service/src/getChatLink.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/pages/messaging/index.tsx b/client/src/pages/messaging/index.tsx index 34afc8e2..a3ff9142 100644 --- a/client/src/pages/messaging/index.tsx +++ b/client/src/pages/messaging/index.tsx @@ -10,7 +10,7 @@ import LinkSharingInstruction from '../../components/Messaging/LinkSharingInstru import Notification from '../../components/Notification'; import notificationAudio from '../../components/Notification/audio.mp3'; import { ThemeContext } from '../../ThemeContext'; -import { LS, SS } from '../../utils/storage'; +import { SS } from '../../utils/storage'; import { getKeyPairFromCache, getUserSessionID, isEmptyMessage, storeKeyPair, storeUserSessionID } from './helpers'; diff --git a/service/src/getChatLink.ts b/service/src/getChatLink.ts index 755727a1..28e84a1d 100644 --- a/service/src/getChatLink.ts +++ b/service/src/getChatLink.ts @@ -1,6 +1,6 @@ import makeRequest from './makeRequest'; -const getChatLink = async (pin) => { +const getChatLink = async (pin: string) => { return makeRequest(`chat-link/${pin}`, { method: 'GET' });