Skip to content

Commit

Permalink
fix(investor-history): fix data logic
Browse files Browse the repository at this point in the history
- Apply correct data logic check for 'No Data' state.

fix #1894
  • Loading branch information
migbash committed Jan 28, 2024
1 parent 791b924 commit 63dcf54
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
// ╰────────────────────────────────────────────────────────────────────────╯
export let
/** @augments IProfileData */
/**
* @augments IProfileData
*/
profileData: IProfileData | null
;
Expand Down Expand Up @@ -297,7 +299,10 @@
-->
<tbody>

{#each [...profileData?.tx_hist?? [], ...profileData?.tx_hist ?? []] ?? [] as item}
<!-- [🐞] -->
<!-- {console.log(profileData?.tx_hist?.length)} -->

{#each profileData?.tx_hist?.filter(x => {return x.type == 'investment'}) ?? [] as item}
{#if item.type == 'investment'}
<InvestmentHistoryRowChild
data={item}
Expand Down

0 comments on commit 63dcf54

Please sign in to comment.