Skip to content

Commit

Permalink
fix(backup): Display a loading button when waiting first answer from …
Browse files Browse the repository at this point in the history
…flagship app
  • Loading branch information
zatteo committed Dec 21, 2023
1 parent 2d7bbd1 commit 29d05b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/photos/ducks/backup/components/BackupActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const BackupActions = () => {
if (!backupPermissions) return null

if (backupPermissions.granted) {
if (!backupInfo) return null
if (!backupInfo) {
return <DisabledLoadingBackupButton />
}

const {
currentBackup: { status, mediasToBackupCount, totalMediasToBackupCount }
Expand Down

0 comments on commit 29d05b2

Please sign in to comment.