Show error
This commit is contained in:
@@ -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