From c3e00cceea76b4c7478d4e0d8a66798e6aaa8b79 Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Sun, 10 Nov 2024 01:13:09 -0500 Subject: [PATCH] PSBT: properly update props --- views/PSBT.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/views/PSBT.tsx b/views/PSBT.tsx index 6c1207b5c..eda0bcc62 100644 --- a/views/PSBT.tsx +++ b/views/PSBT.tsx @@ -77,6 +77,19 @@ export default class PSBT extends React.Component { ); } + UNSAFE_componentWillReceiveProps(nextProps: any): void { + const { route } = nextProps; + const psbt = route.params?.psbt; + this.setState( + { + fundedPsbt: psbt + }, + () => { + this.generateInfo(); + } + ); + } + generateInfo = () => { const { fundedPsbt } = this.state;