Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Jul 9, 2024
1 parent 3b14745 commit 36513b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-legacy/liberapay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ async function handler ({ topic, slug }: PathArgs) {
const endpoint = `https://liberapay.com/${slug}/public.json`

const details = await got(endpoint).json<any>()
const receivingLocaleOptions = {
const receivingLocaleOptions: Intl.NumberFormatOptions = {
style: 'currency',
currency: details.giving.currency
}
const givingLocaleOptions = {
const givingLocaleOptions: Intl.NumberFormatOptions = {
style: 'currency',
currency: details.receiving.currency
}
Expand Down

0 comments on commit 36513b3

Please sign in to comment.