Skip to content

Commit

Permalink
feat: add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jun 22, 2023
1 parent 75e40f6 commit ef8eab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/VaultEntity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function VaultEntity({
anomalies={[{
isValid: !vaultData?.hasErrorAPY,
prefix: 'APY is set to ',
errorMessage: '[ ERROR ]',
errorMessage: `[ ERROR: ${vault?.apy?.error || 'unknown'} ]`,
suffix: `for vault - (Net APY: ${format.amount((vault?.apy?.net_apy || 0) * 100, 2, 4)}% | Gross APR: ${format.amount((vault?.apy?.gross_apr || 0) * 100, 2, 4)}%)`
}, {
isValid: !vaultData?.hasNewAPY,
Expand Down

0 comments on commit ef8eab5

Please sign in to comment.