From daa641eb2b5037e02250f064cff2653312ca16e6 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 27 Mar 2024 22:55:49 +0000 Subject: [PATCH] Dont render Android results, if not confirmed --- web/src/pages/[...listing].astro | 2 +- web/src/utils/fetch-android-info.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/pages/[...listing].astro b/web/src/pages/[...listing].astro index c64f471..010d4e3 100644 --- a/web/src/pages/[...listing].astro +++ b/web/src/pages/[...listing].astro @@ -309,7 +309,7 @@ const getApiEndpoint = () => { )} - { androidData && ( + { (androidData && !androidData.error) && (

{name} Android App

diff --git a/web/src/utils/fetch-android-info.ts b/web/src/utils/fetch-android-info.ts index ebf682f..522a342 100644 --- a/web/src/utils/fetch-android-info.ts +++ b/web/src/utils/fetch-android-info.ts @@ -26,6 +26,7 @@ interface Tracker { } export interface AndroidInfo { + error?: string; handle: string; app_name: string; uaid: string;