Skip to content

Commit

Permalink
Merge pull request #2405 from zetkin/issue-2397/convert-hex-values
Browse files Browse the repository at this point in the history
Convert input hex value to lowercase on submit
  • Loading branch information
richardolsson authored Dec 4, 2024
2 parents 9da5262 + b9fcb00 commit 845f9a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const TagDialog: React.FunctionComponent<TagDialogProps> = ({
e.preventDefault();
e.stopPropagation();
const tagBody = {
...(color.value && { color: `#${color.value}` }),
...(color.value && { color: `#${color.value}`.toLowerCase() }),
...(tag && 'id' in tag && { id: tag.id }),
...(type && { value_type: type }),
title,
Expand Down

0 comments on commit 845f9a9

Please sign in to comment.