Browse Source

Fix type and syntax errors

master
Immanuel Onyeka 1 year ago
parent
commit
6566e1a4e9
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      components/settings.vue
  2. +1
    -1
      migrations/seed.sql

+ 2
- 1
components/settings.vue View File

@@ -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
}


+ 1
- 1
migrations/seed.sql View File

@@ -41,7 +41,7 @@ INSERT IGNORE INTO user (
'Coltrane',
sha2('test123', 256),
1,
'9059991111'
'9059991111',
(SELECT id FROM branch LIMIT 1),
'Canada',
'Loan Officer',


Loading…
Cancel
Save