|
|
@@ -120,6 +120,7 @@ function uploadLetterhead() { |
|
|
|
} |
|
|
|
|
|
|
|
function setLetterhead(f) { |
|
|
|
letterheadError.value = "" |
|
|
|
const validTypes = ['image/jpeg', 'image/png'] |
|
|
|
|
|
|
|
if (!validTypes.includes(f.type)) { |
|
|
@@ -145,7 +146,7 @@ function setLetterhead(f) { |
|
|
|
function changeAvatar(blob) { |
|
|
|
const validTypes = ['image/jpeg', 'image/png'] |
|
|
|
|
|
|
|
if (!validTypes.includes(blob.type)) { |
|
|
|
if (!validTypes.includes(blob?.type)) { |
|
|
|
avatarError.value = 'Image must be JPEG of PNG format' |
|
|
|
return |
|
|
|
} |
|
|
|