Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / store / sagas / monitor / custom-address.delete.ts
blob0484c4ff4067bea1a8a3a96f6d7e72c4aca0fc44
1 import { deleteCustomEmail } from '@proton/pass/lib/monitor/monitor.request';
2 import { deleteCustomAddress } from '@proton/pass/store/actions';
3 import { createRequestSaga } from '@proton/pass/store/request/sagas';
5 export default createRequestSaga({
6     actions: deleteCustomAddress,
7     call: async (addressId) => {
8         await deleteCustomEmail(addressId);
9         return addressId;
10     },
11 });