Fix tx reset state button

This commit is contained in:
muzam1l
2022-07-19 17:36:09 +05:30
parent c9a852e9be
commit 637a066f69
3 changed files with 44 additions and 22 deletions

View File

@@ -134,7 +134,7 @@ export const prepareTransaction = (data: any) => {
delete options[field];
}
});
return options
}
@@ -196,7 +196,7 @@ export const prepareState = (value: string, transactionType?: string) => {
tx.selectedDestAccount = null
}
}
else if (Destination) {
else if (Destination) {
rest.Destination = Destination
}
@@ -243,3 +243,10 @@ export const getTxFields = (tt?: string) => {
}
export { transactionsData }
export const transactionsOptions = transactionsData.map(tx => ({
value: tx.TransactionType,
label: tx.TransactionType,
}));
export const defaultTransactionType = transactionsOptions.find(tt => tt.value === 'Payment')