Skip to content

Commit

Permalink
Merge pull request #127 from bosonprotocol/upgrade-to-latest-cc
Browse files Browse the repository at this point in the history
chore: upgrade on latest core-component
  • Loading branch information
levalleux-ludo authored Mar 14, 2024
2 parents 6f54753 + c371eb7 commit d4cd2b1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
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

0 comments on commit d4cd2b1

Please sign in to comment.