mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Fix default value population in ducks
This commit is contained in:
@@ -239,8 +239,9 @@ export function reducer(
|
||||
if (action.type === GENERATE_FULFILLED) {
|
||||
const { contact, safetyNumber } = action.payload;
|
||||
const { id } = contact;
|
||||
const record = state.contacts[id];
|
||||
strictAssert(record, 'Missing record');
|
||||
const record = state.contacts[id] || {
|
||||
verificationDisabled: false,
|
||||
};
|
||||
return {
|
||||
contacts: {
|
||||
...state.contacts,
|
||||
|
||||
Reference in New Issue
Block a user