File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
extension/src/background/keyring Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -801,7 +801,11 @@ export class KeyRing {
801801
802802 let privateKey : string ;
803803
804- if ( account . public . type === AccountType . PrivateKey ) {
804+ if (
805+ [ AccountType . PrivateKey , AccountType . Disposable ] . includes (
806+ account . public . type
807+ )
808+ ) {
805809 privateKey = secret ;
806810 } else {
807811 const sdk = this . sdkService . getSdk ( ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const MaspShield = ({
3535 setAssetSelectorModalOpen,
3636} : MaspShieldProps ) : JSX . Element => {
3737 // COMPONENT STATE
38- const [ memo , setMemo ] = useState ( "" ) ;
38+ const [ memo , setMemo ] = useState < string | undefined > ( ) ;
3939 const [ displayAmount , setDisplayAmount ] = useAtom ( transferAmountAtom ) ;
4040 const [ selectedAssetWithAmount , setSelectedAssetWithAmount ] = useState <
4141 AssetWithAmountAndChain | undefined
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const MaspUnshield = ({
3434 setAssetSelectorModalOpen,
3535} : MaspUnshieldProps ) : JSX . Element => {
3636 // COMPONENT STATE
37- const [ memo , setMemo ] = useState ( "" ) ;
37+ const [ memo , setMemo ] = useState < string | undefined > ( ) ;
3838 const [ displayAmount , setDisplayAmount ] = useAtom ( transferAmountAtom ) ;
3939 const [ selectedAssetWithAmount , setSelectedAssetWithAmount ] = useState <
4040 AssetWithAmountAndChain | undefined
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export const NamadaTransfer = ({
4242 // COMPONENT STATE
4343 const [ displayAmount , setDisplayAmount ] = useAtom ( transferAmountAtom ) ;
4444 const [ customAddress ] = useState < string > ( "" ) ;
45- const [ memo , setMemo ] = useState < string > ( "" ) ;
45+ const [ memo , setMemo ] = useState < string | undefined > ( ) ;
4646 const [ selectedAssetWithAmount , setSelectedAssetWithAmount ] = useState <
4747 AssetWithAmountAndChain | undefined
4848 > ( ) ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export type TransferModuleProps = {
4444 isShieldedAddress : boolean ;
4545 memo ?: string ;
4646 onChangeAddress : ( address ?: string ) => void ;
47- onChangeMemo ?: Dispatch < SetStateAction < string > > ;
47+ onChangeMemo ?: Dispatch < SetStateAction < string | undefined > > ;
4848 } ;
4949 requiresIbcChannels ?: boolean ;
5050 feeProps ?: TransactionFeeProps ;
You can’t perform that action at this time.
0 commit comments