mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
btc: reset psbt state on exit from sending flow
This fixes trying to access beyond buffer length errors.
This commit is contained in:
parent
bdf64a9613
commit
89b7a24109
@ -66,7 +66,10 @@ export default class Balance extends Component {
|
||||
denomination={denomination}
|
||||
sats={sats}
|
||||
conversion={conversion}
|
||||
stopSending={() => {this.setState({sending: false})}}
|
||||
stopSending={() => {
|
||||
this.setState({sending: false});
|
||||
store.handleEvent({data: {psbt: ''}});
|
||||
}}
|
||||
/> :
|
||||
<Col
|
||||
height="400px"
|
||||
|
@ -16,7 +16,7 @@ export class UpdateReducer {
|
||||
if (json["change-wallet"]) {
|
||||
this.changeWallet(json["change-wallet"], state);
|
||||
}
|
||||
if (json.psbt) {
|
||||
if (json.hasOwnProperty('psbt')) {
|
||||
this.reducePsbt(json.psbt, state);
|
||||
}
|
||||
if (json["btc-state"]) {
|
||||
|
Loading…
Reference in New Issue
Block a user