forked from vergnet/application-amicale
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
|
<ErrorView
|
||||||
status={status}
|
status={status}
|
||||||
code={code}
|
code={code}
|
||||||
button={{
|
button={
|
||||||
|
code !== API_REQUEST_CODES.BAD_TOKEN
|
||||||
|
? {
|
||||||
icon: 'refresh',
|
icon: 'refresh',
|
||||||
text: i18n.t('general.retry'),
|
text: i18n.t('general.retry'),
|
||||||
onPress: () => refreshData(),
|
onPress: () => refreshData(),
|
||||||
}}
|
}
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue