Merge pull request #214 from UniversityRadioYork/marks/friendly-loading

Slightly friendlier loading screen
This commit is contained in:
Marks Polakovs 2021-02-17 19:30:45 +00:00 committed by GitHub
commit 59615f4e06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,17 +347,20 @@ export function LoadingDialogue({
<p>
<strong>{subtitle}</strong>
</p>
{error !== null && (
<>
<p>
<strong>Failed!</strong> Please tell Computing Team that something
broke.
</p>
<p>
<code>{error}</code>
</p>
</>
)}
{error !== null &&
(error === "Error: No valid authentication data provided." ? (
<p>Redirecting you to MyRadio, please wait...</p>
) : (
<>
<p>
<strong>Failed!</strong> Please tell Computing Team that
something broke.
</p>
<p>
<code>{error}</code>
</p>
</>
))}
</span>
</div>
);