@pioneer-platform/pioneer-react 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { u as usePioneer, j as jsxRuntimeExports, S as Search2Icon, M as MiddleEllipsis, W as WalletSelect, A as AssetSelect } from "./index_49fce0b0.js";
1
+ import { u as usePioneer, j as jsxRuntimeExports, S as Search2Icon, M as MiddleEllipsis, W as WalletSelect, A as AssetSelect } from "./index_bc632802.js";
2
2
  import { Stack, InputGroup, InputLeftElement, Input, Box, Text, Checkbox, HStack, Avatar, Button, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter } from "@chakra-ui/react";
3
3
  import { useState, useEffect } from "react";
4
4
  import "react-dom";
@@ -157,8 +157,8 @@ const Home = () => {
157
157
  const [modalType, setModalType] = useState("");
158
158
  const { isOpen, onOpen, onClose } = useDisclosure();
159
159
  useEffect(() => {
160
- console.log("pubkeyContext: ", pubkeyContext);
161
- setAddress(pubkeyContext.master || pubkeyContext.pubkey);
160
+ console.log("2 pubkeyContext: ", pubkeyContext);
161
+ setAddress(pubkeyContext.master || pubkeyContext.pubkey || pubkeyContext);
162
162
  }, [pubkeyContext]);
163
163
  const openModal = (type) => {
164
164
  setModalType(type);
@@ -195,7 +195,7 @@ const Home = () => {
195
195
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => openModal("Select Blockchain"), children: "Select Blockchain" }),
196
196
  /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
197
197
  "Address: ",
198
- (pubkeyContext == null ? void 0 : pubkeyContext.master) || (pubkeyContext == null ? void 0 : pubkeyContext.pubkey),
198
+ address,
199
199
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => openModal("View Address"), children: "View Address" }),
200
200
  /* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
201
201
  ] });