mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #18898 from overleaf/jpa-no-window
[web] migrate from window attributes to getMeta GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
This commit is contained in:
@@ -54,7 +54,7 @@ export const Loading: FC<{
|
||||
}
|
||||
}, [projectJoined])
|
||||
|
||||
const LoadingScreenError = () => {
|
||||
const getLoadingScreenError = (): string => {
|
||||
if (connectionState.error) {
|
||||
// NOTE: translations not ready yet
|
||||
return connectionState.error === 'io-not-loaded'
|
||||
@@ -82,9 +82,7 @@ export const Loading: FC<{
|
||||
hasError={hasError}
|
||||
/>
|
||||
{hasError && (
|
||||
<p className="loading-screen-error">
|
||||
<LoadingScreenError />
|
||||
</p>
|
||||
<p className="loading-screen-error">{getLoadingScreenError()}</p>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user