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

Commit

Permalink
Fix order of object override when copying identity server terms state
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed May 17, 2022
1 parent 5f8aeca commit dcd1ea2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dcd1ea2

Please sign in to comment.