@huma-finance/widgets 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3499,7 +3499,7 @@ function ConfirmTransfer$1() {
3499
3499
  leftText: "".concat(borrowAmountNet, " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
3500
3500
  rightText: 'You'
3501
3501
  }],
3502
- actionText: "Approve Transfer",
3502
+ actionText: "APPROVE TRANSFER",
3503
3503
  handleAction: handleAction
3504
3504
  });
3505
3505
  }
@@ -4341,7 +4341,12 @@ var columns = [{
4341
4341
  noSeparator: true
4342
4342
  }, {
4343
4343
  title: 'Amount',
4344
- dataIndex: 'amount'
4344
+ action: function action(record) {
4345
+ if (isEmpty(record.amount) || Number.isNaN(record.amount)) {
4346
+ return '';
4347
+ }
4348
+ return Number(record.amount).toFixed(2);
4349
+ }
4345
4350
  }, {
4346
4351
  title: 'Date',
4347
4352
  dataIndex: 'timestamp'
@@ -4556,7 +4561,7 @@ function ConfirmTransfer() {
4556
4561
  leftText: "".concat(borrowAmount.toFixed(2), " ").concat(approval === null || approval === void 0 ? void 0 : approval.token.symbol),
4557
4562
  rightText: 'You'
4558
4563
  }],
4559
- actionText: "Approve Transfer",
4564
+ actionText: "APPROVE TRANSFER",
4560
4565
  handleAction: handleAction
4561
4566
  });
4562
4567
  }