Skip to content

Commit

Permalink
Fix: A rendering bug when labels for actions were the same (even for …
Browse files Browse the repository at this point in the history
…short period of time) (#3917)

Co-authored-by: Geoffrey Chong <gyfchong@users.noreply.github.com>
  • Loading branch information
jakubriedl and gyfchong authored Jul 28, 2023
1 parent 7f08152 commit 1fc1f90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-donkeys-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kaizen/draft-modal": patch
---

Fix: A rendering bug when labels for actions were the same (even for short period of time)
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ModalFooter = (props: ModalFooterProps): JSX.Element => {
)}
>
{actions.map((action, index) => (
<div className={styles.actionButton} key={action.label}>
<div className={styles.actionButton} key={index}>
<Button
type="button"
primary={index === 0 && appearance === "primary"}
Expand Down

0 comments on commit 1fc1f90

Please sign in to comment.