Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Jan 5, 2024
2 parents fe7317f + 033e800 commit 3d88659
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/common/components/proposal-list-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export class ProposalListItem extends Component<Props, State> {

const params = new URLSearchParams(location.search);
const voterParams = params.get("voter");

if (!!voterParams) {
getProposalVotes(proposal.id, voterParams as string, 1)
.then((r) => {
Expand Down
5 changes: 3 additions & 2 deletions src/common/constants/servers.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
"https://rpc.ecency.com",
"https://api.deathwing.me",
"https://techcoderx.com",
"https://anyx.io",
"https://api.hive.blog",
"https://rpc.ecency.com",
"https://api.openhive.network"
]
10 changes: 9 additions & 1 deletion src/common/pages/proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ class ProposalsPage extends BaseComponent<PageProps, State> {
} catch (e) {
throw e;
} finally {
const params = new URLSearchParams(location.search);
const filterParams = params.get("filter");
if (!!filterParams) {
this.stateSet({ filter: filterParams as Filter });
this.applyFilter(filterParams as Filter);
}
this.stateSet({ loading: false });
}
};
Expand Down Expand Up @@ -168,7 +174,9 @@ class ProposalsPage extends BaseComponent<PageProps, State> {
proposals = [
...proposals_.filter(
(x) =>
["ecency", "good-karma", "hivesearcher", "hivesigner"].includes(x.creator) &&
["ecency", "good-karma", "hivesearcher", "hivesigner", "hivexplorer"].includes(
x.creator
) &&
(x.status === "active" || new Date(x.start_date) > new Date())
)
];
Expand Down

0 comments on commit 3d88659

Please sign in to comment.