Skip to content

Commit

Permalink
Merge pull request #231 from cozy/fix/ver-792
Browse files Browse the repository at this point in the history
fix: Duplicate toast informations
  • Loading branch information
Merkur39 authored Aug 8, 2024
2 parents b440d53 + a37a162 commit 7331e00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const deleteCipher = async (
: cipherService.softDeleteWithServer(cipher.id);
const message = i18nService.t(cipher.isDeleted ? "permanentlyDeletedItem" : "deletedItem");
await deletePromise;
toastService.showToast({ title: message, message, variant: "success" });
toastService.showToast({ title: message, message: "", variant: "success" });
const onDeletedCipher = new EventEmitter<CipherView>();
onDeletedCipher.emit(cipher);
} catch {
Expand Down
2 changes: 1 addition & 1 deletion libs/cozy/contactCipher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const deleteContactCipher = async (
await cipherService.delete(cipher.id);

const message = i18nService.t("deletedContactItem");
toastService.showToast({ title: message, message, variant: "success" });
toastService.showToast({ title: message, message: "", variant: "success" });

return true;
};
Expand Down
2 changes: 1 addition & 1 deletion libs/cozy/paperCipher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const deletePaperCipher = async (
await cipherService.delete(cipher.id);

const message = i18nService.t("deletedPaperItem");
toastService.showToast({ title: message, message, variant: "success" });
toastService.showToast({ title: message, message: "", variant: "success" });

return true;
};
Expand Down

0 comments on commit 7331e00

Please sign in to comment.