Compare commits
	
		
			1 Commits
		
	
	
		
			feat/memos
			...
			fix/dest-f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					aae9c7468f | 
@@ -154,10 +154,12 @@ const Transaction: FC<TransactionProps> = ({
 | 
			
		||||
      const nwState: Partial<TransactionState> = {
 | 
			
		||||
        viewType,
 | 
			
		||||
        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) {
 | 
			
		||||
        nwState.selectedDestAccount = null;
 | 
			
		||||
        fields.Destination = "";
 | 
			
		||||
      } else {
 | 
			
		||||
        fields.Destination = undefined;
 | 
			
		||||
 
 | 
			
		||||
@@ -58,12 +58,11 @@ export const TxUI: FC<UIProps> = ({
 | 
			
		||||
      const fields = getTxFields(tt);
 | 
			
		||||
 | 
			
		||||
      if (fields.Destination !== undefined) {
 | 
			
		||||
        setState({ selectedDestAccount: null });
 | 
			
		||||
        fields.Destination = "";
 | 
			
		||||
      } else {
 | 
			
		||||
        fields.Destination = undefined;
 | 
			
		||||
      }
 | 
			
		||||
      return setState({ txFields: fields });
 | 
			
		||||
      return setState({ txFields: fields, selectedDestAccount: null });
 | 
			
		||||
    },
 | 
			
		||||
    [setState]
 | 
			
		||||
  );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user