Actually fix Json 'save'.

This commit is contained in:
muzam1l
2023-03-08 20:33:23 +05:30
parent 38f064c6d8
commit 4528e5a16e
3 changed files with 41 additions and 30 deletions

View File

@@ -36,6 +36,7 @@ export interface TransactionState {
txFields: TxFields
viewType: 'json' | 'ui'
editorValue?: string
editorIsSaved: boolean
estimatedFee?: string
}
@@ -53,6 +54,7 @@ export const defaultTransaction: TransactionState = {
selectedFlags: null,
hookParameters: {},
memos: {},
editorIsSaved: true,
txIsLoading: false,
txIsDisabled: false,
txFields: {},
@@ -271,6 +273,7 @@ export const prepareState = (value: string, transactionType?: string) => {
})
tx.txFields = rest
tx.editorIsSaved = true;
return tx
}