From 10efb796439652b17763ed9f66e79de12675b921 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 15 Mar 2022 11:54:08 -0700 Subject: [PATCH] fix: resolve lint error in paypal-button (#45440) --- client/src/components/Donation/paypal-button.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;