Skip to content

Commit 4306cfb

Browse files
committed
fix(hex-to-rgb/a): add missing parenthesis
1 parent 27e5fc7 commit 4306cfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/src/utilities/hex-to-rgb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const hexToRgb = (color) => {
2727
b = parseInt(color.substring(3, 5), 16)
2828
}
2929

30-
return `rgba(${r}, ${g}, ${b}`
30+
return `rgba(${r}, ${g}, ${b})`
3131
}
3232

3333
export default hexToRgb

js/src/utilities/hex-to-rgba.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const hexToRgba = (color, opacity = 100) => {
2727
b = parseInt(color.substring(3, 5), 16)
2828
}
2929

30-
return `rgba(${r}, ${g}, ${b}, ${opacity / 100}`
30+
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`
3131
}
3232

3333
export default hexToRgba

0 commit comments

Comments
 (0)