Skip to content

Commit 0e647d0

Browse files
authored
fix(container): guard optional accentColor before resolveColor (#618)
1 parent 1393c5e commit 0e647d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/commandkit/src/components/display/container.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export function Container(props: ContainerProps): ContainerBuilder {
3939

4040
applyId(props, container);
4141

42-
if (typeof props.accentColor != null) {
43-
container.setAccentColor(resolveColor(props.accentColor!));
42+
if (props.accentColor != null) {
43+
container.setAccentColor(resolveColor(props.accentColor));
4444
}
4545

4646
if (props.spoiler != null) {

0 commit comments

Comments
 (0)