Skip to content

Commit

Permalink
chore: simplify materials check
Browse files Browse the repository at this point in the history
  • Loading branch information
azech-hqs committed Oct 13, 2022
1 parent 8589906 commit 56be15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/providers/espresso/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class QEPWXContextProvider extends mix(ExecutableContextProvider).with(
}

static getMaterialsContext(materials) {
if (!!materials || materials.length <= 1) return {};
if (!materials) return {};
return { perMaterial: materials.map((material) => this.getMaterialContext(material)) };
}

Expand Down

0 comments on commit 56be15f

Please sign in to comment.