Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade on latest core-component #127

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@bosonprotocol/react-kit": "^0.27.1",
"@bosonprotocol/react-kit": "^0.28.1-alpha.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
16 changes: 8 additions & 8 deletions src/components/widgets/redeem/Redeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,17 @@ function checkExchangeState(
): subgraph.ExchangeState {
switch (exchangeStateStr?.toLowerCase()) {
case undefined:
case subgraph.ExchangeState.Committed.toLowerCase(): {
return subgraph.ExchangeState.Committed;
case subgraph.ExchangeState.COMMITTED.toLowerCase(): {
return subgraph.ExchangeState.COMMITTED;
}
case subgraph.ExchangeState.Redeemed.toLowerCase(): {
return subgraph.ExchangeState.Redeemed;
case subgraph.ExchangeState.REDEEMED.toLowerCase(): {
return subgraph.ExchangeState.REDEEMED;
}
case subgraph.ExchangeState.Disputed.toLowerCase(): {
return subgraph.ExchangeState.Disputed;
case subgraph.ExchangeState.DISPUTED.toLowerCase(): {
return subgraph.ExchangeState.DISPUTED;
}
case subgraph.ExchangeState.Completed.toLowerCase(): {
return subgraph.ExchangeState.Completed;
case subgraph.ExchangeState.COMPLETED.toLowerCase(): {
return subgraph.ExchangeState.COMPLETED;
}
}
throw new Error(`Not supported exchange state '${exchangeStateStr}'`);
Expand Down
Loading