Skip to content

Commit

Permalink
fix(ui): error message for dev tapplet invalid manifest (#128)
Browse files Browse the repository at this point in the history
Description
---
Fix error message for dev tapplet when invalid tapplet manifest is
detected

Motivation and Context
---
Hosting invalid dev tapplet caused app to crash

How Has This Been Tested?
---
Tested manually. I have registered tariswap tapplet as dev tapplet but
later hosted faucet tapplet.

What process can a PR reviewer use to test or verify this change?
---
Register one dev tapplet but host another after.

Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify
  • Loading branch information
MCozhusheck authored Aug 7, 2024
1 parent cfac17a commit 3db1ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DevTapplet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export function ActiveDevTapplet() {
} else {
dispatch(
errorActions.showError({
message: `manifest-package-name-mismatch | packageName: ${state?.package_name} & manifestId: ${manifest?.id} & endpoint: ${state?.endpoint}`,
message: `manifest-package-name-mismatch | packageName-${state?.package_name} & manifestId-${manifest?.id} & endpoint-${state?.endpoint}`,
errorSource: ErrorSource.FRONTEND,
})
)
}
} catch (error) {
dispatch(
errorActions.showError({
message: `fetching-taplet-manifest-failed | error: ${error}`,
message: `fetching-tapplet-manifest-failed | error-${error}`,
errorSource: ErrorSource.FRONTEND,
})
)
Expand Down

0 comments on commit 3db1ba2

Please sign in to comment.