Don't show updates button when loading

This commit is contained in:
Lim Chee Aun 2023-01-31 11:24:46 +08:00
parent e282f5df2a
commit 4ed2852c41
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -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"