Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Dec 1, 2024
1 parent 801b8ca commit c0e0021
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/app/src/components/transactions/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,6 @@ const fetchMethodNames = async (sighashes: string[]): Promise<Record<string, str
}
};
watch(
data,
async (newData) => {
if (!newData) return;
await loadMethodNames();
},
{ immediate: true }
);
const methodNames = ref<Record<string, string>>({});
const loadMethodNames = async () => {
Expand All @@ -348,6 +338,16 @@ const loadMethodNames = async () => {
methodNames.value = { ...methodNames.value, ...fetchedMethodNames };
};
watch(
data,
async (newData) => {
if (!newData) return;
await loadMethodNames();
},
{ immediate: true }
);
const getTransactionMethod = (transaction: TransactionListItem, methodNames: Record<string, string>) => {
if (transaction.data === "0x") {
return t("transactions.table.transferMethodName");
Expand Down

0 comments on commit c0e0021

Please sign in to comment.