Skip to content

Commit

Permalink
forgot a return
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jul 2, 2024
1 parent 81ddceb commit 1f431f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/addon/addon-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ export default {
const image = new Image();
image.src = e.target.result;
image.onload = function () {
// do not use anonymous fn
// do not use arrow fn
try {
validateImage(this); // this is image now
resolve();
Expand Down
2 changes: 1 addition & 1 deletion pages/gallery/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export default {
},
computed: {
requestTime() {
if (!this.timer.end || !this.timer.start);
if (!this.timer.end || !this.timer.start) return;
const seconds = (this.timer.end - this.timer.start) / 1000;
// cast to number again to remove unnecessary zeros
return Number(seconds.toFixed(2));
Expand Down

0 comments on commit 1f431f7

Please sign in to comment.