mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: Ensure loading message doesn't change on re-render
This commit is contained in:
parent
e325a5c27e
commit
f748891b4b
@ -22,9 +22,13 @@ const messages = [
|
||||
'Loading Battlestation'
|
||||
];
|
||||
|
||||
let message = null;
|
||||
|
||||
function LoadingMessage() {
|
||||
const index = Math.floor(Math.random() * messages.length);
|
||||
const message = messages[index];
|
||||
if (!message) {
|
||||
const index = Math.floor(Math.random() * messages.length);
|
||||
message = messages[index];
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.loadingMessage}>
|
||||
|
Loading…
Reference in New Issue
Block a user