From ac0710e5daaec872ecd7fe9dd3ad6f901bdb8383 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 28 Nov 2024 03:12:51 +0100 Subject: [PATCH] feat(188): fix del error por mostrar videos --- app/screens/news/newsDetail.tsx | 13 +++++++------ app/screens/profile/stats.tsx | 8 ++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/screens/news/newsDetail.tsx b/app/screens/news/newsDetail.tsx index 7c673bb..bf63bf9 100644 --- a/app/screens/news/newsDetail.tsx +++ b/app/screens/news/newsDetail.tsx @@ -1,8 +1,9 @@ -import {ScrollView, Text, useWindowDimensions, View} from 'react-native'; +import {useTheme} from "@react-navigation/native"; import React from "react"; -import {useSafeAreaInsets} from "react-native-safe-area-context"; +import {ScrollView, Text, useWindowDimensions, View} from 'react-native'; import RenderHTML from "react-native-render-html"; -import {useTheme} from "@react-navigation/native"; +import {useSafeAreaInsets} from "react-native-safe-area-context"; + import {Img} from "@/components/elements/Img"; import {Fonts} from "@/constants/Colors"; // import { WebView } from 'react-native-webview'; @@ -32,8 +33,8 @@ export default function NewsDetailScreen({route}: any) { li: { color: colors.text, } - }; - + }; + return ( diff --git a/app/screens/profile/stats.tsx b/app/screens/profile/stats.tsx index 4f5a067..0a20ed5 100644 --- a/app/screens/profile/stats.tsx +++ b/app/screens/profile/stats.tsx @@ -357,7 +357,7 @@ export default function StatsScreen({route}: any) { {rankedInfo !== null ? - {rankedInfo.ranked.stats.rank !== null + {rankedInfo.ranked.stats && rankedInfo.ranked.stats.rank !== undefined ? : null} - {rankedInfo.ranked.zeroBuild.rank !== null + {rankedInfo.ranked.zeroBuild && rankedInfo.ranked.zeroBuild.rank !== undefined ? - {rankedInfo.ranked.stats.rank !== null + {rankedInfo.ranked.reloadRanked && rankedInfo.ranked.reloadRanked.rank !== undefined ? : null} - {rankedInfo.ranked.stats.rank !== null + {rankedInfo.ranked.racing && rankedInfo.ranked.racing.rank !== undefined ?