Skip to content

Commit

Permalink
problem: claim problem button is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Nov 11, 2023
1 parent 34d0ac9 commit d2ff02b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { labelledTag } from "$lib/helpers/shouldBeInNDK";
import type { NDKEvent } from "@nostr-dev-kit/ndk";
import { get } from "svelte/store";
import { nostrocketIgnitionEvent, rootProblem } from "../../../../settings";
import { Problem, type Nostrocket } from "../types";
import { consensusTipState } from "../master_state";
import { get } from "svelte/store";
import { tr } from "date-fns/locale";
import { Problem, type Nostrocket } from "../types";

export function HandleProblemEvent(
ev: NDKEvent,
Expand Down
6 changes: 5 additions & 1 deletion src/routes/problems/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
$: {
problem = $consensusTipState.Problems.get($page.params.id);
claimable = problem?.Children.size == 0 && problem.Status == "open";
if (problem) {
claimable = (!hasOpenChildren(problem, $consensusTipState) && problem.Status == "open");
console.log(claimable)
}
if (statusErrorText) {
setTimeout(() => {
statusErrorText = undefined;
Expand Down

0 comments on commit d2ff02b

Please sign in to comment.