tiny refactor
This commit is contained in:
parent
c5683254a3
commit
e5659fc5ad
|
@ -280,13 +280,12 @@ class App extends Component<RouteComponentProps, State> {
|
||||||
};
|
};
|
||||||
this.setState({ user });
|
this.setState({ user });
|
||||||
saveUser(user);
|
saveUser(user);
|
||||||
const textOptions: IT.TextOptions = {
|
|
||||||
...userTextOptionsRecord.userTextOptions,
|
|
||||||
pTextSize: getTextOptions(this.state).pTextSize,
|
|
||||||
};
|
|
||||||
const textOptionsRecord: TextOptionsRecord = {
|
const textOptionsRecord: TextOptionsRecord = {
|
||||||
lastModified: userTextOptionsRecord.lastModified,
|
lastModified: userTextOptionsRecord.lastModified,
|
||||||
textOptions,
|
textOptions: {
|
||||||
|
...userTextOptionsRecord.userTextOptions,
|
||||||
|
pTextSize: getTextOptions(this.state).pTextSize,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
this.handleOptionsUpdate({ type: "updateTextOptionsRecord", payload: textOptionsRecord });
|
this.handleOptionsUpdate({ type: "updateTextOptionsRecord", payload: textOptionsRecord });
|
||||||
if (!serverOptionsAreNewer) {
|
if (!serverOptionsAreNewer) {
|
||||||
|
|
Loading…
Reference in New Issue