Compare commits

...

2 Commits

3 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
"display": "standalone", "display": "standalone",
"scope": "./", "scope": "./",
"background_color": "#fefffa", "background_color": "#fefffa",
"theme_color": "#9c0a45",
"start_url": "./", "start_url": "./",
"icons": [ "icons": [
{ {

View File

@@ -26,6 +26,7 @@ export class ContactForm {
protected phoneErrorsDictionary = new PhoneFieldErroresDictionary().getDictionary(); protected phoneErrorsDictionary = new PhoneFieldErroresDictionary().getDictionary();
handleSubmit(contactForm: ContactFormValue) { handleSubmit(contactForm: ContactFormValue) {
if (this.form().invalid) return;
if (contactForm.company === null || contactForm.name === null || contactForm.phone === null) if (contactForm.company === null || contactForm.name === null || contactForm.phone === null)
return; return;
const contact = new ContactDTO( const contact = new ContactDTO(

View File

@@ -21,7 +21,7 @@ describe('Edit', () => {
let CONTACT_MOCK: ContactDTO; let CONTACT_MOCK: ContactDTO;
beforeEach(async () => { beforeEach(async () => {
CONTACT_MOCK = new ContactDTO(1, 'mock', 'mock', 'mock'); CONTACT_MOCK = new ContactDTO(1, 'mock', 'mock', '123456789012');
activatedRoute = jasmine.createSpyObj(ActivatedRoute.name, [], { activatedRoute = jasmine.createSpyObj(ActivatedRoute.name, [], {
data: of({ contact: CONTACT_MOCK }), data: of({ contact: CONTACT_MOCK }),
}); });