Skip to content

Commit

Permalink
issue-333 Use stake pool dummy data again
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikGuzei committed Sep 21, 2020
1 parent e72cc18 commit 0c7d34b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/features/stake-pools/store.ts
Expand Up @@ -8,6 +8,7 @@ import {
UNMODERATED_WARNING_STORAGE_KEY,
} from './constants';
import { StakePoolsActions } from './index';
import DUMMY_DATA from './stakingStakePools.dummy.json';

export class StakePoolsStore extends Store {
private readonly stakePoolsApi: StakePoolsApi;
Expand All @@ -29,10 +30,10 @@ export class StakePoolsStore extends Store {
],
])
);
this.stakePoolsApi.getStakePoolsQuery.execute({
limit: 10,
offset: 0,
});
// this.stakePoolsApi.getStakePoolsQuery.execute({
// limit: 10,
// offset: 0,
// });
}
@computed get showUnmoderatedData() {
const { showUnmoderatedDataStorage } = this;
Expand All @@ -43,7 +44,7 @@ export class StakePoolsStore extends Store {
return showUnmoderatedDataStorage - now <= UNMODERATED_WARNING_PERIOD;
}
@computed get stakePoolsList() {
return this.stakePoolsApi.getStakePoolsQuery.result;
return DUMMY_DATA; // this.stakePoolsApi.getStakePoolsQuery.result;
}
@action private handleAcceptUnmoderatedData = () => {
const now: number = new Date().getTime();
Expand Down

0 comments on commit 0c7d34b

Please sign in to comment.