diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/Error/RateLimited.svelte | 22 | ||||
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 3 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/lib/Error/RateLimited.svelte b/src/lib/Error/RateLimited.svelte index 1861ca16..b00bbd11 100644 --- a/src/lib/Error/RateLimited.svelte +++ b/src/lib/Error/RateLimited.svelte @@ -14,18 +14,21 @@ {type} could not be loaded. You might have been <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. </p> + {#if loginSessionError} <p> Your login session may have expired. Try logging out and logging back in, or try again in a few minutes. </p> {/if} + <slot /> + + <p /> + {#if contact} - <p> - If the problem persists, please contact - <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. - </p> + If the problem persists, please contact + <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} </li> </ul> @@ -34,18 +37,21 @@ {type} could not be loaded. You might have been <a href="https://en.wikipedia.org/wiki/Rate_limiting" target="_blank">rate limited</a>. </p> + {#if loginSessionError} <p> Your login session may have expired. Try logging out and logging back in, or try again in a few minutes. </p> {/if} + <slot /> + + <p /> + {#if contact} - <p> - If the problem persists, please contact - <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. - </p> + If the problem persists, please contact + <a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList. {/if} {/if} </div> diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 49704dcc..a01d9934 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -671,13 +671,14 @@ </div> </div> {:catch} - <Error type="User" card /> + <Error type="User" card list={false} /> {/await} {:catch} <Error card type={`${useFullActivityHistory ? 'Full-year activity' : 'Activity'} history`} loginSessionError={!useFullActivityHistory} + list={false} > {#if useFullActivityHistory} <p> |