diff --git a/src/photos/ducks/backup/helpers/error.js b/src/photos/ducks/backup/helpers/error.js index 6fc2748d1..6515f0cee 100644 --- a/src/photos/ducks/backup/helpers/error.js +++ b/src/photos/ducks/backup/helpers/error.js @@ -1,11 +1,22 @@ +const IGNORED_ERRORS = [ + 'Backup already preparing', + 'Copia de seguridad ya se está preparando', + 'Sauvegarde déjà en préparation' +] + export const parseBackupError = ({ message }) => { try { const parsed = JSON.parse(message) + return { message: parsed.message, statusCode: parsed.statusCode } } catch { + if (IGNORED_ERRORS.includes(message)) { + return null + } + return { message }