From b289a85b8a8531abbe0dad630fc4b33d65045cbf Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sun, 23 May 2021 15:07:37 +0200 Subject: [PATCH] Do not show retry button on token error --- src/components/Screens/WebSectionList.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/Screens/WebSectionList.tsx b/src/components/Screens/WebSectionList.tsx index f6df60f..4f7cf20 100644 --- a/src/components/Screens/WebSectionList.tsx +++ b/src/components/Screens/WebSectionList.tsx @@ -141,11 +141,15 @@ function WebSectionList(props: Props) { refreshData(), - }} + button={ + code !== API_REQUEST_CODES.BAD_TOKEN + ? { + icon: 'refresh', + text: i18n.t('general.retry'), + onPress: () => refreshData(), + } + : undefined + } /> ) }