diff --git a/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte b/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte index 3ad753788b..5e71d52a87 100644 --- a/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte +++ b/packages/shared/src/components/molecules/activity-info/GenericActivityInformation.svelte @@ -7,17 +7,19 @@ export let activity: Activity - $: expirationTime = getFormattedTimeStamp(activity?.asyncData?.expirationDate) - $: claimedTime = getFormattedTimeStamp(activity?.asyncData?.claimedDate) - $: hasStorageDeposit = - activity?.storageDeposit || (activity?.storageDeposit === 0 && activity?.giftedStorageDeposit === 0) - $: gasLimit = activity?.parsedLayer2Metadata?.gasLimit + $: expirationTime = activity?.asyncData?.expirationDate + ? getFormattedTimeStamp(activity?.asyncData?.expirationDate) + : undefined + $: claimedTime = activity?.asyncData?.claimedDate + ? getFormattedTimeStamp(activity?.asyncData?.claimedDate) + : undefined + $: hasStorageDeposit = activity?.storageDeposit + $: gasFee = activity?.parsedLayer2Metadata?.gasLimit || activity?.gasUsed $: formattedTransactionTime = getFormattedTimeStamp(activity.time) $: formattedTimelockDate = activity.asyncData ? getFormattedTimeStamp(activity.asyncData?.timelockDate) : undefined $: formattedStorageDeposit = formatTokenAmountPrecise(activity.storageDeposit ?? 0, getBaseToken()) - $: formattedGasLimit = formatTokenAmountPrecise(Number(gasLimit ?? 0), getBaseToken()) - $: formattedGasUsed = formatTokenAmountPrecise(Number(activity.gasUsed ?? 0), getBaseToken()) + $: formattedGasFee = formatTokenAmountPrecise(Number(gasFee ?? 0), getBaseToken()) let items: IItem[] = [] @@ -59,17 +61,10 @@ tooltip: localize(`tooltips.transactionDetails.${_activity?.direction}.storageDeposit`), }) } - if (_activity?.gasUsed) { + if (gasFee) { items.push({ - key: localize('general.gasUsed'), - value: formattedGasUsed, - }) - } - if (gasLimit) { - items.push({ - key: localize('general.gasLimit'), - value: formattedGasLimit, - tooltip: localize(`tooltips.transactionDetails.${_activity?.direction}.gasLimit`), + key: localize('general.gasFee'), + value: formattedGasFee, }) } if (expirationTime) { diff --git a/packages/shared/src/locales/en.json b/packages/shared/src/locales/en.json index d5fb5458ab..2ed1612d51 100644 --- a/packages/shared/src/locales/en.json +++ b/packages/shared/src/locales/en.json @@ -1728,7 +1728,7 @@ "transactionTime": "Transaction time", "surplus": "Surplus", "storageDeposit": "Storage deposit", - "gasUsed": "Gas used", + "gasFee": "Gas fee", "giftedStorageDeposit": "Gifted storage deposit", "storageDepositPerNft": "Storage deposit per NFT", "totalStorageDeposit": "Total storage deposit",