Skip to content

Commit

Permalink
Removed optional chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
bence-toth committed Aug 16, 2020
1 parent 8f1290b commit aba16e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions triangle-mosaic/triangle-mosaic.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,16 +584,16 @@ class TriangleMosaic {
if (shapeFuzz !== undefined) {
this.shapeFuzz = shapeFuzz
}
if (colorFuzz?.hue !== undefined) {
if (colorFuzz && (colorFuzz.hue !== undefined)) {
this.colorFuzz.hue = colorFuzz.hue
}
if (colorFuzz?.saturation !== undefined) {
if (colorFuzz && (colorFuzz.saturation !== undefined)) {
this.colorFuzz.saturation = colorFuzz.saturation
}
if (colorFuzz?.lightness !== undefined) {
if (colorFuzz && (colorFuzz.lightness !== undefined)) {
this.colorFuzz.lightness = colorFuzz.lightness
}
if (colorFuzz?.alpha !== undefined) {
if (colorFuzz && (colorFuzz.alpha !== undefined)) {
this.colorFuzz.alpha = colorFuzz.alpha
}
if (coloring !== undefined) {
Expand Down

0 comments on commit aba16e1

Please sign in to comment.