Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eshaham/israeli-bank-scrapers
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.2.2
Choose a base ref
...
head repository: eshaham/israeli-bank-scrapers
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.2.3
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 16, 2025

  1. fix(beinleumi): account with no balance (inactive) (#893)

    whatuserever authored Jan 16, 2025

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    26837de View commit details
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/scrapers/base-beinleumi-group.ts
6 changes: 5 additions & 1 deletion src/scrapers/base-beinleumi-group.ts
Original file line number Diff line number Diff line change
@@ -258,7 +258,11 @@ async function getAccountTransactions(page: Page) {
}

async function getCurrentBalance(page: Page) {
const balanceStr = await page.$eval(CURRENT_BALANCE, (option) => {
const balanceElement = await page.$(CURRENT_BALANCE);
if (!balanceElement) {
return undefined;
}
const balanceStr = await balanceElement.evaluate((option) => {
return (option as HTMLElement).innerText;
});
return getAmountData(balanceStr);