Skip to content

Commit

Permalink
fix: description overwritten by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Dec 1, 2023
1 parent e466af2 commit 37ce90f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.3.2 (01/12/2023)

- Fix: description overwritten by default

# 0.3.1 (30/11/2023)

- Fix: Divisions by 0 in the veYFI rate calculator
Expand Down
9 changes: 1 addition & 8 deletions apps/common/schemas/yDaemonVaultsSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,7 @@ export const yDaemonVaultSchema = z.object({
.catch('Legacy'),
symbol: z.string(),
name: z.string(),
description: z
.string()
.default(
'Sorry, we don\'t have a description for this asset right now. But did you know the correct word for a blob of toothpaste is a "nurdle". Fascinating! We\'ll work on updating the asset description, but at least you learnt something interesting. Catch ya later nurdles.'
)
.catch(
'Sorry, we don\'t have a description for this asset right now. But did you know the correct word for a blob of toothpaste is a "nurdle". Fascinating! We\'ll work on updating the asset description, but at least you learnt something interesting. Catch ya later nurdles.'
),
description: z.string().default('').catch(''),
category: z
.literal('Curve')
.or(z.literal('Volatile'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function VaultDetailsAbout({currentVault}: {currentVault: TYDaemonVault})
if (token.description) {
return parseMarkdown(token.description.replaceAll('{{token}}', currentVault.token.symbol));
}
return currentVault.description;
return `Sorry, we don't have a description for this asset right now. But did you know the correct word for a blob of toothpaste is a "nurdle". Fascinating! We'll work on updating the asset description, but at least you learnt something interesting. Catch ya later nurdles.`;
}

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/vaults/components/details/tabs/VaultDetailsAbout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function VaultDetailsAbout({
if (token.description) {
return parseMarkdown(token.description.replaceAll('{{token}}', currentVault.token.symbol));
}
return currentVault.description;
return `Sorry, we don't have a description for this asset right now. But did you know the correct word for a blob of toothpaste is a "nurdle". Fascinating! We'll work on updating the asset description, but at least you learnt something interesting. Catch ya later nurdles.`;
}

return (
Expand Down

1 comment on commit 37ce90f

@vercel
Copy link

@vercel vercel bot commented on 37ce90f Dec 1, 2023

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.