Skip to content

Commit

Permalink
Fix group export when name contains non-ASCII characters
Browse files Browse the repository at this point in the history
  • Loading branch information
scastiel committed Dec 7, 2024
1 parent 5732f78 commit 98e2345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/groups/[groupId]/expenses/export/json/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function GET(
return NextResponse.json({ error: 'Invalid group ID' }, { status: 404 })

const date = new Date().toISOString().split('T')[0]
const filename = `Spliit Export - ${group.name} - ${date}`
const filename = `Spliit Export - ${date}`
return NextResponse.json(group, {
headers: {
'content-type': 'application/json',
Expand Down

0 comments on commit 98e2345

Please sign in to comment.