Skip to content

Commit

Permalink
- fix adventurer data update on switch
Browse files Browse the repository at this point in the history
- update connector version
  • Loading branch information
starknetdev committed Jun 26, 2024
1 parent 5d4fee6 commit f4aa5b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@apollo/client": "^3.7.11",
"@cartridge/connector": "^0.3.26",
"@cartridge/connector": "^0.3.30",
"@dojoengine/create-burner": "^0.7.0-alpha.1",
"@fontsource/vt323": "^4.5.10",
"@starknet-react/core": "^2.5.0",
Expand Down
4 changes: 4 additions & 0 deletions ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ function Home() {
const newAdventurerData = await refetch("adventurerByIdQuery", {
id: adventurerId,
});
const newAdventurersData = await refetch("adventurersByOwnerQuery", {
owner: owner,
});
const newLatestDiscoveriesData = await refetch("latestDiscoveriesQuery", {
id: adventurerId,
});
Expand All @@ -385,6 +388,7 @@ function Home() {
seed: newLastBeastData.discoveries[0]?.seed,
});
setData("adventurerByIdQuery", newAdventurerData);
setData("adventurersByOwnerQuery", newAdventurersData);
setData("latestDiscoveriesQuery", newLatestDiscoveriesData);
setData("itemsByAdventurerQuery", newAdventurerItemsData);
setData("latestMarketItemsQuery", newMarketItemsData);
Expand Down
18 changes: 9 additions & 9 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1028,20 +1028,20 @@
"@babel/helper-validator-identifier" "^7.19.1"
to-fast-properties "^2.0.0"

"@cartridge/connector@^0.3.26":
version "0.3.26"
resolved "https://registry.yarnpkg.com/@cartridge/connector/-/connector-0.3.26.tgz#b15e5372ab408a9ba676cd2cd95730724103e737"
integrity sha512-zg5Hs59b++yCjLPo/HDLuGwofWUtk9fos0poUXJqyU5QrIwjJXJuDaRFskoGfPGAsAzVqt1AHMpVpLEauxADig==
"@cartridge/connector@^0.3.30":
version "0.3.30"
resolved "https://registry.yarnpkg.com/@cartridge/connector/-/connector-0.3.30.tgz#77e939143f84aa8f024aaf8923d32e32b18bf04c"
integrity sha512-N7IKaB+wJWtchkcsmSbfDupSuqp1F21EPc0jFmYUNt/qimVbFhLId2x/bMiTOxVhO6roBtyYbo7E0XLeWcKlkA==
dependencies:
"@cartridge/controller" "^0.3.26"
"@cartridge/controller" "^0.3.30"
"@starknet-react/core" "^2.1.5"
starknet "^6.6.0"
typescript "^5.4.5"

"@cartridge/controller@^0.3.26":
version "0.3.26"
resolved "https://registry.yarnpkg.com/@cartridge/controller/-/controller-0.3.26.tgz#e21b20699ffcbfa1e01c6925b1c8eb05032adc63"
integrity sha512-rdvsFszy5bQUlLPXYWbEsOglu6XrmN2RlkGYhzcNccdxey5HicN1xP2lj+I0sBxDJ4WIjl59/hU8Oqw4yFwy8Q==
"@cartridge/controller@^0.3.30":
version "0.3.30"
resolved "https://registry.yarnpkg.com/@cartridge/controller/-/controller-0.3.30.tgz#1442025da2f1ea1304530c1716f9da7f0a1d97bb"
integrity sha512-TIKaUROLny3M9I2pXLBjUI1WzgBHvAhMsgYcTBOHzDSn/f2pyGL3RuiEJT6X3fg5LHDH0hook2CYhvDEmqxzqQ==
dependencies:
"@cartridge/penpal" "^6.2.3"
base64url "^3.0.1"
Expand Down

0 comments on commit f4aa5b6

Please sign in to comment.