Fix order of object override when copying identity server terms state (#8619)

Fixes https://github.com/vector-im/element-web/issues/20003
t3chguy/dedup-icons-17oct
Travis Ralston 2022-05-17 00:20:16 -06:00 committed by GitHub
parent 5f8aecaf08
commit 2bddadc14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,8 +211,8 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
// User accepted all terms
this.setState({
requiredPolicyInfo: {
...this.state.requiredPolicyInfo, // set first so we can override
hasTerms: false,
...this.state.requiredPolicyInfo,
},
});
} catch (e) {