Skip to content

Commit c4dfb95

Browse files
swan-amazonAlami-Amine
authored andcommitted
fix: Invert boolean return in GetAcknowledgementsRequest (#37014)
* fix: Invert boolean return in GetAcknowledgementsRequest The GetAcknowledgementsRequest was returning an incorrect boolean value, causing unexpected behavior. This change inverts the return value to fix the logical error. Testing: - Issue identified during test plan script development - Test plan changes will be referenced in a separate change
1 parent 45c3953 commit c4dfb95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/server/DefaultTermsAndConditionsProvider.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ CHIP_ERROR chip::app::DefaultTermsAndConditionsProvider::GetAcknowledgementsRequ
211211

212212
TermsAndConditions requiredTermsAndConditions = requiredTermsAndConditionsMaybe.Value();
213213
TermsAndConditions acceptedTermsAndConditions = acceptedTermsAndConditionsMaybe.Value();
214-
outAcknowledgementsRequired = requiredTermsAndConditions.Validate(acceptedTermsAndConditions);
214+
215+
bool requiredTermsAndConditionsAreAccepted = requiredTermsAndConditions.Validate(acceptedTermsAndConditions);
216+
outAcknowledgementsRequired = !requiredTermsAndConditionsAreAccepted;
215217
return CHIP_NO_ERROR;
216218
}
217219

0 commit comments

Comments
 (0)