Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / store / sagas / monitor / sentinel-toggle.saga.ts
blobd223dc61774864162a6819985dadc159d4dbff45
1 import { toggleSentinel } from '@proton/pass/lib/monitor/monitor.request';
2 import { sentinelToggle } from '@proton/pass/store/actions';
3 import { createRequestSaga } from '@proton/pass/store/request/sagas';
5 export default createRequestSaga({
6     actions: sentinelToggle,
7     call: async (value) => {
8         await toggleSentinel(value);
9         return value;
10     },
11 });