Skip to content

Commit

Permalink
components/AmountInput: set satAmount properly on construction
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Apr 8, 2023
1 parent 01d4904 commit 5b49853
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/AmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ export default class AmountInput extends React.Component<
constructor(props: any) {
super(props);

const { amount } = props;
let satAmount = '0';
if (amount) satAmount = getSatAmount(amount).toString();
this.state = {
satAmount: '0'
satAmount
};
}

Expand Down

0 comments on commit 5b49853

Please sign in to comment.