diff --git a/components/portfolio/ApprovalCollapsible.tsx b/components/portfolio/ApprovalCollapsible.tsx index fabddb76c..1c0bd3e1b 100644 --- a/components/portfolio/ApprovalCollapsible.tsx +++ b/components/portfolio/ApprovalCollapsible.tsx @@ -175,7 +175,7 @@ export const ApprovalCollapsible: FC = ({ - {item.txHash && item.status == 'incomplete' ? ( + {item.txHashes && item.status == 'incomplete' ? ( = ({ children }) => { status: failedPurchases ? 'error' : 'success', action: ( - {currentStep.items?.map((item) => { - const txHash = item.txHash - ? `${item.txHash.slice(0, 4)}...${item.txHash.slice(-4)}` - : '' - return ( - - View transaction: {txHash} - - ) - })} + {currentStep.items?.map((item) => + item.txHashes?.map((txHash) => { + const formattedTxHash = txHash + ? `${txHash.slice(0, 4)}...${txHash.slice(-4)}` + : '' + return ( + + View transaction: {formattedTxHash} + + ) + }) + )} ), }) diff --git a/package.json b/package.json index ee9cd01c7..b5a1c78cd 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@radix-ui/react-toggle-group": "^1.0.1", "@radix-ui/react-tooltip": "1.0.6", "@rainbow-me/rainbowkit": "^1.1.3", - "@reservoir0x/reservoir-kit-ui": "1.16.2", + "@reservoir0x/reservoir-kit-ui": "1.17.0", "@sentry/nextjs": "^7.53.1", "@types/uuid": "^9.0.1", "dayjs": "^1.11.6", diff --git a/yarn.lock b/yarn.lock index 049a03b56..fc6e33a07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1435,10 +1435,10 @@ dependencies: "@react-hookz/deep-equal" "^1.0.3" -"@reservoir0x/reservoir-kit-ui@1.16.2": - version "1.16.2" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.16.2.tgz#0268212a7c49ec76e50f00b5a471b65b6419d836" - integrity sha512-8eFjnZsSWijjgZFTDyPXkaWmHCTK6eu7wy7O4EEC3OaXcpPYice3vCrQjbL+w4MdcTr/Fp+AQv9yoUqKxoXNFQ== +"@reservoir0x/reservoir-kit-ui@1.17.0": + version "1.17.0" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.17.0.tgz#0348547ec77f24210222fde4247a1e71f62ab77e" + integrity sha512-rxdMNz/YqOyOhWUUaIY55nUOxEtbBClk919hXYNMTiyCCtG4y/z7e7c4NDnkakM/maTi4HXaQDmL70jpPZ5MMQ== dependencies: "@fortawesome/fontawesome-svg-core" "^6.1.1" "@fortawesome/free-solid-svg-icons" "^6.1.1" @@ -1454,7 +1454,7 @@ "@radix-ui/react-toggle-group" "1.0.4" "@radix-ui/react-tooltip" "1.0.6" "@react-hookz/web" "^19.2.0" - "@reservoir0x/reservoir-sdk" "1.6.1" + "@reservoir0x/reservoir-sdk" "1.7.0" "@stitches/react" "1.3.1-1" dayjs "^1.11.4" flatpickr "^4.6.13" @@ -1462,10 +1462,10 @@ react-flatpickr "^3.10.13" swr "2.0.1" -"@reservoir0x/reservoir-sdk@1.6.1": - version "1.6.1" - resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.6.1.tgz#8b14b5aa2598b333df52ae889d3c3bbcedf3b0f9" - integrity sha512-qYtqbE7mSQ7MBgXLgxxT+DgBIbDDyGUtJso+5Oq98HZXdB0yAVM5eoeNEenlNJ4Vkz33OwS8BTlQbuII6QKLiQ== +"@reservoir0x/reservoir-sdk@1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.7.0.tgz#0b0b1b87cb30247bdb5c9b86052cfbd061fda37f" + integrity sha512-bK3bckEfG65J9zbnXB+hjqDCZp2nAq6HQPjNKJvtLY+H36S0VS99Ogbm141nw+kZFMdHGHgr/2X0ubUsxw98CA== dependencies: axios "^0.27.2"