Skip to content

Commit

Permalink
added transaction value
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikKarpuk committed Jul 16, 2024
1 parent 81af217 commit 0f83357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ui/components/molecules/modals/pendingModal/pendingInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export type PendingModalProps = {
zkTxId: string | null;
domainStatus: DOMAIN_STATUS;
startTimestamp: number | null;
transaction: string;
};
const PendingModal: FC<PendingModalProps> = (props) => {
const { isSendToCloudWorker, zkTxId, domainStatus } = props;
const { isSendToCloudWorker, zkTxId, domainStatus, transaction } = props;
const {
state: { additionData },
} = useStoreContext();
Expand All @@ -26,7 +27,7 @@ const PendingModal: FC<PendingModalProps> = (props) => {
? domainStatus
: additionData?.domainStatus;

const transaction = additionData?.transaction;
const transactionPay = transaction || additionData?.transaction;

useEffect(() => {
if (availableZkTxId) {
Expand All @@ -45,7 +46,7 @@ const PendingModal: FC<PendingModalProps> = (props) => {
zkTxId={availableZkTxId}
isSendToCloudWorker={isSendToCloudWorker || additionData?.zkTxId}
domainStatus={availableDomainStatus}
transaction={transaction}
transaction={transactionPay}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { useStoreContext } from "@/store";
import { addMinaText } from "@/helpers/name.helper";
import { Modals } from "@/components/molecules/modals/modals.types";


const initPage = 0;
const initSize = 50;

Expand Down Expand Up @@ -49,6 +48,7 @@ const AllContent = ({
zkTxId: domain.zkTxId,
domainStatus: domain.domainStatus,
startTimestamp: domain.startTimestamp,
transaction: domain.transaction
});
},
}
Expand Down

0 comments on commit 0f83357

Please sign in to comment.