Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address label not showing up properly #729

Open
NithaDuff opened this issue Jun 15, 2023 · 1 comment
Open

Address label not showing up properly #729

NithaDuff opened this issue Jun 15, 2023 · 1 comment
Labels
bug Something isn't working no-stale

Comments

@NithaDuff
Copy link

NithaDuff commented Jun 15, 2023

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
This is the address object that was created:
const addr : Address = {
label: 'Work'
street: this.addUserForm. value.street,
postalCode: this.addUserForm. value. ponum,
locality: this.addUserForm. value. state,
countryName: this .addUserForm. value. country
};

This is string of the card generated using the vCardFormatter.getVCardAsString() method
BEGIN:VCARD
VERSION:3
FN;CHARSET=utf-8:test N;CHARSET=utf-8.;test.;.
ORG;CHARSET=utf-8:ABC Co. ltd
ADR;LABEL-"Work".,;The building, 5th
Floor, PO Box 2345;Sample,;;Sample
TEL;TYPE-Cell:444 TEL;TYPE-Work:
EMAIL;TYPE=Work:[email protected] TITLE;CHARSET-utf-8:test URL:www.abc.com
NOTE;CHARSET=utf-8:Some note
END;VCARD

On converting this to a contact card:
WhatsApp Image 2023-06-15 at 7 29 31 PM

Note the label of the address field which should've come as "Work" but this is displayed as "LABEL"
If I explicitly add the character encoding to the address field, then we see this as "CHARSET".

Expected behavior
The label value or type value given while creating the card class should be displayed as label in the generated vcard.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: iPhone14 pro
  • OS: iOS 16.5

Additional context
Add any other context about the problem here.

@NithaDuff NithaDuff added the bug Something isn't working label Jun 15, 2023
@github-actions
Copy link

This issue is stale because it has been open at least 30 days with no activity. Comment or this issue will be closed in 14 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-stale
Projects
None yet
Development

No branches or pull requests

2 participants