Skip to content

Commit c1973cc

Browse files
committed
chore(accordion): variable name clarification
1 parent 10eabb3 commit c1973cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/components/accordion/accordion.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export class Accordion implements ComponentInterface {
4545
*/
4646
const accordionGroup = this.accordionGroupEl;
4747
if (accordionGroup) {
48-
const value = accordionGroup.value;
49-
const accordionValue = this.value;
50-
const shouldExpand = Array.isArray(value) ? value.includes(accordionValue) : value === accordionValue;
48+
const groupValue = accordionGroup.value;
49+
const value = this.value;
50+
const shouldExpand = Array.isArray(groupValue) ? groupValue.includes(value) : groupValue === value;
5151
const isExpanded = this.state === AccordionState.Expanded || this.state === AccordionState.Expanding;
5252
const stateWillChange = shouldExpand !== isExpanded;
5353

@@ -65,7 +65,7 @@ export class Accordion implements ComponentInterface {
6565
* This prevents the initial undefined value from the group's componentDidLoad
6666
* from being treated as the first real update.
6767
*/
68-
if (value !== undefined) {
68+
if (groupValue !== undefined) {
6969
this.hasReceivedFirstUpdate = true;
7070
}
7171
}

0 commit comments

Comments
 (0)