mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Fix order of object override when copying identity server terms state (#8619)
Fixes https://github.com/vector-im/element-web/issues/20003
This commit is contained in:
parent
5f8aecaf08
commit
2bddadc14e
1 changed files with 1 additions and 1 deletions
|
@ -211,8 +211,8 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
|
||||||
// User accepted all terms
|
// User accepted all terms
|
||||||
this.setState({
|
this.setState({
|
||||||
requiredPolicyInfo: {
|
requiredPolicyInfo: {
|
||||||
|
...this.state.requiredPolicyInfo, // set first so we can override
|
||||||
hasTerms: false,
|
hasTerms: false,
|
||||||
...this.state.requiredPolicyInfo,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue