Do not show retry button on token error
This commit is contained in:
parent
ffa4cfa376
commit
b289a85b8a
1 changed files with 9 additions and 5 deletions
|
@ -141,11 +141,15 @@ function WebSectionList<ItemT, RawData>(props: Props<ItemT, RawData>) {
|
|||
<ErrorView
|
||||
status={status}
|
||||
code={code}
|
||||
button={{
|
||||
button={
|
||||
code !== API_REQUEST_CODES.BAD_TOKEN
|
||||
? {
|
||||
icon: 'refresh',
|
||||
text: i18n.t('general.retry'),
|
||||
onPress: () => refreshData(),
|
||||
}}
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue