Skip to content

Commit

Permalink
Update initial error face asset index
Browse files Browse the repository at this point in the history
  • Loading branch information
jonamil committed Jul 19, 2024
1 parent d968077 commit 5d39842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/TheLinkColumnBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ if (!view.isSafari) {
});
}
const maxErrorAssetIndex = 5;
const errorAssetIndexes = [...Array(maxErrorAssetIndex + 1).keys()];
const errorAssetIndexes = [...Array(6 /* highest error asset index + 1 */).keys()];
let currentErrorAssetIndex = 0;
let currentErrorAssetIndex = -1;
const currentErrorAsset = ref(undefined);
watch(
Expand All @@ -129,6 +128,7 @@ watch(
const otherErrorAssetIndexes = errorAssetIndexes.filter(
(asset) => asset !== currentErrorAssetIndex
);
currentErrorAssetIndex =
otherErrorAssetIndexes[Math.floor(Math.random() * otherErrorAssetIndexes.length)];
Expand Down

1 comment on commit 5d39842

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for hackernews-dot-cool ready!

✅ Preview
https://hackernews-dot-cool-h12h9jekz-jonamil-56ba8df7.vercel.app

Built with commit 5d39842.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.