Skip to content

Commit

Permalink
fix: fix avatar error callback call way
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustAMan committed Nov 3, 2020
1 parent 5cc1556 commit 4ff9e33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/avatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export default {
const isImageExist = ref(true)
const handleError = () => {
const errorFlag = error ? error.value() : undefined
if (errorFlag !== false) {
const handleError = (e) => {
const errorFlag = error?.value(e)
if (!!errorFlag !== false) {
isImageExist.value = false
}
}
Expand Down

0 comments on commit 4ff9e33

Please sign in to comment.