diff --git a/client/src/components/Donation/paypal-button.tsx b/client/src/components/Donation/paypal-button.tsx index 510dee766b..afd4f56790 100644 --- a/client/src/components/Donation/paypal-button.tsx +++ b/client/src/components/Donation/paypal-button.tsx @@ -85,7 +85,9 @@ export class PaypalButton extends Component< this.handleApproval = this.handleApproval.bind(this); } - static getDerivedStateFromProps(props: PaypalButtonProps): PaypalButtonState { + static getDerivedStateFromProps( + props: Readonly + ): PaypalButtonState { const { donationAmount, donationDuration } = props; const configurationObj: { amount: number;