Don't show updates button when loading

pull/49/head
Lim Chee Aun 2023-01-31 11:24:46 +08:00
rodzic e282f5df2a
commit 4ed2852c41
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -357,6 +357,7 @@ function Home({ hidden }) {
</div>
</header>
{snapStates.homeNew.length > 0 &&
uiState !== 'loading' &&
((scrollDirection === 'start' &&
!nearReachStart &&
!nearReachEnd) ||

Wyświetl plik

@ -151,7 +151,7 @@ function Notifications() {
<Loader hidden={uiState !== 'loading'} />
</div>
</header>
{snapStates.notificationsNew.length > 0 && (
{snapStates.notificationsNew.length > 0 && uiState !== 'loading' && (
<button
class="updates-button"
type="button"