From 41c5ad45fdd070106a9c9d61685bd6d773874dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Mon, 6 Jun 2022 13:42:59 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: alannnc --- apps/web/components/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/components/App.tsx b/apps/web/components/App.tsx index 042108b3f4..297a36b588 100644 --- a/apps/web/components/App.tsx +++ b/apps/web/components/App.tsx @@ -61,7 +61,7 @@ export default function App({ currency: "USD", useGrouping: false, }).format(price); - const [installedApp, setInstalledApp] = useState(0); + const [installedAppCount, setInstalledAppCount] = useState(0); const [isLoading, setIsLoading] = useState(true); useEffect(() => { async function getInstalledApp(appCredentialType: string) { @@ -79,7 +79,7 @@ export default function App({ }); if (result.status === 200) { const res = await result.json(); - setInstalledApp(res.count); + setInstalledAppCount(res.count); } } catch (error) { if (error instanceof Error) { @@ -118,7 +118,7 @@ export default function App({ isGlobal || installedApp > 0 ? (