Skip to content

Commit

Permalink
Fix competition tab crash ; Fix compitition plugin ugly name (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Oct 6, 2020
1 parent 5542099 commit f63072e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getArc } from "arc";
import { CompetitionStatusEnum, CompetitionStatus } from "./utils";
import Card from "./Card";
import * as css from "./Competitions.scss";
import { GRAPH_POLL_INTERVAL } from "../../../../settings";

interface IExternalProps {
daoState: IDAOState;
Expand Down Expand Up @@ -138,7 +137,7 @@ export default withSubscription({
`;

const arc = await getArc();
await arc.sendQuery(cacheQuery, { polling: true, pollInterval: GRAPH_POLL_INTERVAL });
await arc.sendQuery(cacheQuery);
// end cache priming

// TODO: next lines can use some cleanup up
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pluginUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function pluginName(plugin: IPluginState|IContractInfo, fallback?: string
name = "Blockchain Interaction";
}
} else if (plugin.name === "ContributionRewardExt") {
name = rewarderContractName(plugin as IContributionRewardExtState);
name = rewarderContractName(plugin as IContributionRewardExtState, false);
if (!name) {
name = plugin.name;
} // else name is the rewarder contract alias, or its name split by camel case
Expand Down

0 comments on commit f63072e

Please sign in to comment.