Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2bddadc

Browse files
authored
Fix order of object override when copying identity server terms state (#8619)
Fixes element-hq/element-web#20003
1 parent 5f8aeca commit 2bddadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
211211
// User accepted all terms
212212
this.setState({
213213
requiredPolicyInfo: {
214+
...this.state.requiredPolicyInfo, // set first so we can override
214215
hasTerms: false,
215-
...this.state.requiredPolicyInfo,
216216
},
217217
});
218218
} catch (e) {

0 commit comments

Comments
 (0)