Compare commits
4 Commits
feat/deplo
...
fix/dest-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aae9c7468f | ||
|
|
fb9814ec76 | ||
|
|
d459b2ee92 | ||
|
|
6ee1a09aaa |
@@ -143,7 +143,6 @@ const RunScript: React.FC<{ file: IFile }> = ({ file: { content, name } }) => {
|
|||||||
setIframeCode(template);
|
setIframeCode(template);
|
||||||
|
|
||||||
state.scriptLogs = [
|
state.scriptLogs = [
|
||||||
...snap.scriptLogs,
|
|
||||||
{ type: "success", message: "Started running..." },
|
{ type: "success", message: "Started running..." },
|
||||||
];
|
];
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -154,10 +154,12 @@ const Transaction: FC<TransactionProps> = ({
|
|||||||
const nwState: Partial<TransactionState> = {
|
const nwState: Partial<TransactionState> = {
|
||||||
viewType,
|
viewType,
|
||||||
selectedTransaction: transactionType,
|
selectedTransaction: transactionType,
|
||||||
|
selectedDestAccount: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Currently in schema "Destination": "SomeVal" means 'Destination is required' while empty string indicates it is optional
|
||||||
|
// TODO Update schema with clear required tag
|
||||||
if (fields.Destination !== undefined) {
|
if (fields.Destination !== undefined) {
|
||||||
nwState.selectedDestAccount = null;
|
|
||||||
fields.Destination = "";
|
fields.Destination = "";
|
||||||
} else {
|
} else {
|
||||||
fields.Destination = undefined;
|
fields.Destination = undefined;
|
||||||
|
|||||||
@@ -58,12 +58,11 @@ export const TxUI: FC<UIProps> = ({
|
|||||||
const fields = getTxFields(tt);
|
const fields = getTxFields(tt);
|
||||||
|
|
||||||
if (fields.Destination !== undefined) {
|
if (fields.Destination !== undefined) {
|
||||||
setState({ selectedDestAccount: null });
|
|
||||||
fields.Destination = "";
|
fields.Destination = "";
|
||||||
} else {
|
} else {
|
||||||
fields.Destination = undefined;
|
fields.Destination = undefined;
|
||||||
}
|
}
|
||||||
return setState({ txFields: fields });
|
return setState({ txFields: fields, selectedDestAccount: null });
|
||||||
},
|
},
|
||||||
[setState]
|
[setState]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user