Skip to content

Commit

Permalink
Update frontend/helpers/generateFakeVault.ts
Browse files Browse the repository at this point in the history
Co-authored-by: valia fetisov <[email protected]>
  • Loading branch information
zoey-kaiser and valiafetisov authored Sep 20, 2022
1 parent f6e746f commit 50373ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/helpers/generateFakeVault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ export const generateFakeVaultTransactions = function (
liquidatedVaultsAmount = random(1, 5),
notLiquidatedVaultsAmount = random(5, 15)
) {
let vaults: VaultTransaction[] = [];
vaults = [...Array(liquidatedVaultsAmount).fill(null).map(generateFakeVaultLiquidatedTransaction)];
vaults = [
...vaults,
const vaults: VaultTransaction[] = [
...Array(liquidatedVaultsAmount).fill(null).map(generateFakeVaultLiquidatedTransaction),
...Array(notLiquidatedVaultsAmount).fill(null).map(generateFakeVaultNotLiquidatedTransaction),
];
return faker.helpers.shuffle(vaults);
Expand Down

0 comments on commit 50373ca

Please sign in to comment.