TelegramPWA/src/global/reducers/twoFaSettings.ts
2022-03-19 21:19:11 +01:00

15 lines
267 B
TypeScript

import { GlobalState } from '../types';
export function updateTwoFaSettings(
global: GlobalState,
update: GlobalState['twoFaSettings'],
): GlobalState {
return {
...global,
twoFaSettings: {
...global.twoFaSettings,
...update,
},
};
}