@@ -44,19 +44,13 @@ interface Props {
4444}
4545
4646export const RateOfPayComponent = ( { onRateChange, toggle } : Props ) => {
47- const {
48- continuousPaymentsEnabled,
49- rateOfPay,
50- minRateOfPay,
51- maxRateOfPay,
52- walletAddress,
53- } = usePopupState ( ) ;
47+ const { continuousPaymentsEnabled, rateOfPay, maxRateOfPay, walletAddress } =
48+ usePopupState ( ) ;
5449 return (
5550 < div className = "space-y-8" >
5651 < RateOfPayInput
5752 onRateChange = { onRateChange }
5853 rateOfPay = { rateOfPay }
59- minRateOfPay = { minRateOfPay }
6054 maxRateOfPay = { maxRateOfPay }
6155 walletAddress = { walletAddress }
6256 disabled = { ! continuousPaymentsEnabled }
@@ -87,7 +81,6 @@ type RateOfPayInputProps = {
8781 onRateChange : Props [ 'onRateChange' ] ;
8882 walletAddress : PopupState [ 'walletAddress' ] ;
8983 rateOfPay : PopupState [ 'rateOfPay' ] ;
90- minRateOfPay : PopupState [ 'minRateOfPay' ] ;
9184 maxRateOfPay : PopupState [ 'maxRateOfPay' ] ;
9285 disabled ?: boolean ;
9386} ;
@@ -96,7 +89,6 @@ const RateOfPayInput = ({
9689 onRateChange,
9790 walletAddress,
9891 rateOfPay,
99- minRateOfPay,
10092 maxRateOfPay,
10193 disabled,
10294} : RateOfPayInputProps ) => {
@@ -127,7 +119,7 @@ const RateOfPayInput = ({
127119 } }
128120 onError = { ( error ) => setErrorMessage ( t ( error ) ) }
129121 errorMessage = { errorMessage }
130- min = { Number ( formatAmount ( minRateOfPay ) ) }
122+ min = { 1 }
131123 max = { Number ( formatAmount ( maxRateOfPay ) ) }
132124 amount = { formatAmount ( rateOfPay ) }
133125 controls = { true }
0 commit comments