Skip to content

Commit

Permalink
Merge pull request input-output-hk#2946 from input-output-hk/fix/ddw-…
Browse files Browse the repository at this point in the history
…1068-wrong-fund-titles
  • Loading branch information
danielmain authored Apr 5, 2022
2 parents 2209f28 + 4a598c4 commit ce56d89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

### Fixes

- Fixed catalyst fund name ([PR 2946](https://github.com/input-output-hk/daedalus/pull/2946))
- Fixed position of popup on syncing screen ([PR 2921](https://github.com/input-output-hk/daedalus/pull/2921))
- Fixed issue with missing character when copying address from PDF ([PR 2925](https://github.com/input-output-hk/daedalus/pull/2925))
- Fixed stake pool list view overlapping news feed ([PR 2917](https://github.com/input-output-hk/daedalus/pull/2917))
Expand Down
8 changes: 6 additions & 2 deletions source/renderer/app/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2952,9 +2952,13 @@ export default class AdaApi {
catalystFund,
});

const fundNumber =
Number(catalystFund.fund_name?.match(/\d+/)?.[0]) ||
catalystFund.id + 1;

return {
current: {
number: catalystFund.id + 1,
number: fundNumber,
startTime: new Date(catalystFund.fund_start_time),
endTime: new Date(catalystFund.fund_end_time),
resultsTime: new Date(
Expand All @@ -2965,7 +2969,7 @@ export default class AdaApi {
),
},
next: {
number: catalystFund.id + 2,
number: fundNumber + 1,
startTime: new Date(catalystFund.next_fund_start_time),
registrationSnapshotTime: new Date(
catalystFund.next_registration_snapshot_time
Expand Down

0 comments on commit ce56d89

Please sign in to comment.