Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Jun 11, 2023
1 parent fa54ba5 commit 7d2dcc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/model-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ AFRAME.registerSystem('model-progress', {
let title;
let percent;
const progressEntries = Object.entries(this.loadProgress);
if (progressEntries > 0) {
if (progressEntries.length > 0) {
for (const [src, lp] of progressEntries) {
const filename = decodeURIComponent(src)
.replace(/^.*[\\\/]/, "")
Expand Down

0 comments on commit 7d2dcc9

Please sign in to comment.