Skip to content

Commit

Permalink
fix: stash tvos compatibility (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored Oct 13, 2023
1 parent 7a1acd8 commit d37a1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/proxies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function mapLatency(names: string[], getProxy: (name: string) => { history: Late
for (const name of names) {
const p = getProxy(name) || { history: [] };
const history = p.history;
const h = history[history.length - 1];
const h = history?.at?.(-1);
if (h && typeof h.delay === 'number') {
result[name] = { kind: 'Result', number: h.delay };
}
Expand Down

1 comment on commit d37a1ff

@vercel
Copy link

@vercel vercel bot commented on d37a1ff Oct 13, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

yacd – ./

yacd-git-master-haishan.vercel.app
yacd-haishan.vercel.app
yacd-gray.vercel.app

Please sign in to comment.