Show error
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
|||||||
NativePurchaseRestricted,
|
NativePurchaseRestricted,
|
||||||
} from '#/state/purchases/types'
|
} from '#/state/purchases/types'
|
||||||
import {CenteredView} from '#/view/com/util/Views'
|
import {CenteredView} from '#/view/com/util/Views'
|
||||||
import {atoms as a, tokens, useBreakpoints,useTheme} from '#/alf'
|
import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf'
|
||||||
import {Admonition} from '#/components/Admonition'
|
import {Admonition} from '#/components/Admonition'
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import {useDialogControl} from '#/components/Dialog'
|
import {useDialogControl} from '#/components/Dialog'
|
||||||
@@ -73,7 +73,9 @@ export function Subscriptions(_props: ScreenProps) {
|
|||||||
{purchases.status === 'loading' || loading ? (
|
{purchases.status === 'loading' || loading ? (
|
||||||
<Loader />
|
<Loader />
|
||||||
) : purchases.status === 'error' ? (
|
) : purchases.status === 'error' ? (
|
||||||
<View />
|
<Admonition type="error">
|
||||||
|
{purchases.error?.message ?? 'Something went wrong.'}
|
||||||
|
</Admonition>
|
||||||
) : (
|
) : (
|
||||||
<Core state={purchases} restricted={restricted} />
|
<Core state={purchases} restricted={restricted} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user