Skip to content

Commit

Permalink
Merge pull request #161 from Staketab/dev
Browse files Browse the repository at this point in the history
added transaction value
  • Loading branch information
VitalikKarpuk authored Jul 16, 2024
2 parents bd8b37b + 0f83357 commit e7ca023
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 e7ca023

Please sign in to comment.