15 lines
267 B
TypeScript
15 lines
267 B
TypeScript
import { GlobalState } from '../types';
|
|
|
|
export function updateTwoFaSettings(
|
|
global: GlobalState,
|
|
update: GlobalState['twoFaSettings'],
|
|
): GlobalState {
|
|
return {
|
|
...global,
|
|
twoFaSettings: {
|
|
...global.twoFaSettings,
|
|
...update,
|
|
},
|
|
};
|
|
}
|