Skip to content

Commit

Permalink
fix: rename fallback into data variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 8, 2022
1 parent f0f4dd2 commit d98cdf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/avatar/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ module.exports = fn => async (req, res) => {
}

if (value === undefined) {
const fallback = getFallbackUrl({ query, protocol, host })
value = fallback ? { type: 'url', fallback } : null
const data = getFallbackUrl({ query, protocol, host })
value = data ? { type: 'url', data: data } : null
}

return {
Expand Down

1 comment on commit d98cdf2

@vercel
Copy link

@vercel vercel bot commented on d98cdf2 Jan 8, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.