From 7dc51bd2b9535e0a6c707d22cc8b50639438bd32 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Mon, 20 Apr 2026 17:12:41 +0800 Subject: [PATCH] fix: variable yg tidak terpakai --- app/(application)/_layout.tsx | 2 +- providers/AuthProvider.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(application)/_layout.tsx b/app/(application)/_layout.tsx index 3b32f68..9f939c6 100644 --- a/app/(application)/_layout.tsx +++ b/app/(application)/_layout.tsx @@ -108,7 +108,7 @@ export default function RootLayout() { try { if (title != "Komentar Baru") { const hasil = await decryptToken(String(token?.current)) - const response = await apiReadOneNotification({ user: hasil, id: id }) + await apiReadOneNotification({ user: hasil, id: id }) } pushToPage(category, idContent) } catch (error) { diff --git a/providers/AuthProvider.tsx b/providers/AuthProvider.tsx index 0d49e97..1087f55 100644 --- a/providers/AuthProvider.tsx +++ b/providers/AuthProvider.tsx @@ -66,7 +66,7 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea return true } } else { - const register = await apiRegisteredToken({ user: hasil, token: "" }) + await apiRegisteredToken({ user: hasil, token: "" }) await AsyncStorage.setItem('@token', token); tokenRef.current = token; router.replace('/home') @@ -78,7 +78,7 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea const hasil = await decryptToken(String(tokenRef.current)) // if (Platform.OS === 'android') { const token = await getToken() - const response = await apiUnregisteredToken({ user: hasil, token: String(token) }) + await apiUnregisteredToken({ user: hasil, token: String(token) }) // }else{ // const response = await apiUnregisteredToken({ user: hasil, token: "" }) // }