Skip to content

Commit e75e67f

Browse files
authored
fix(draft-order): Update copy phone number (#14044)
## Summary **What** — What changes are introduced in this PR? Copying the phone number would previously copy the email. Implements a fix to instead copy the expected phone number. **Why** — Why are these changes relevant or necessary? Implement the expected functionality **How** — How have these changes been implemented? Update the content of the `<Copy ... />` component. **Testing** — How have these changes been tested, or how can the reviewer test the feature? Manual testing was performed --- ## Checklist Please ensure the following before requesting a review: - [ ] I have added a **changeset** for this PR - Every non-breaking change should be marked as a **patch** - To add a changeset, run `yarn changeset` and follow the prompts - [ ] The changes are covered by relevant **tests** - [ ] I have verified the code works as intended locally - [ ] I have linked the related issue(s) if applicable --- ## Additional Context CLOSES CORE-1282
1 parent e59cdae commit e75e67f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/mighty-sides-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/draft-order": patch
3+
---
4+
5+
fix(draft-order): copy functionality for phone numbers in draft orders

packages/plugins/draft-order/src/admin/components/draft-orders/customer-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const Contact = ({ order }: CustomerSectionProps) => {
134134
</Text>
135135

136136
<div className="flex justify-end">
137-
<Copy content={email} className="text-ui-fg-muted" />
137+
<Copy content={phone} className="text-ui-fg-muted" />
138138
</div>
139139
</div>
140140
)}

0 commit comments

Comments
 (0)