diff options
author | Florian Dold <florian@dold.me> | 2022-03-08 23:09:20 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-08 23:09:20 +0100 |
commit | 6ee0354940c09d1065c3b3b7bf08e41fd6014268 (patch) | |
tree | 7d127977b1517702082d0253099f25c3fa26289f /packages/taler-wallet-core/src/operations/backup/export.ts | |
parent | d5a933e4cb685aab3e5e6bae5ca2358291e59130 (diff) | |
download | wallet-core-6ee0354940c09d1065c3b3b7bf08e41fd6014268.tar.xz |
wallet: improve retry handling for payments, update error codes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/backup/export.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/export.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/export.ts b/packages/taler-wallet-core/src/operations/backup/export.ts index 05ef66883..12b309418 100644 --- a/packages/taler-wallet-core/src/operations/backup/export.ts +++ b/packages/taler-wallet-core/src/operations/backup/export.ts @@ -388,19 +388,19 @@ export async function exportBackup( } let propStatus: BackupProposalStatus; switch (prop.proposalStatus) { - case ProposalStatus.ACCEPTED: + case ProposalStatus.Accepted: return; - case ProposalStatus.DOWNLOADING: - case ProposalStatus.PROPOSED: + case ProposalStatus.Downloading: + case ProposalStatus.Proposed: propStatus = BackupProposalStatus.Proposed; break; - case ProposalStatus.PERMANENTLY_FAILED: + case ProposalStatus.PermanentlyFailed: propStatus = BackupProposalStatus.PermanentlyFailed; break; - case ProposalStatus.REFUSED: + case ProposalStatus.Refused: propStatus = BackupProposalStatus.Refused; break; - case ProposalStatus.REPURCHASE: + case ProposalStatus.Repurchase: propStatus = BackupProposalStatus.Repurchase; break; } |