Skip to content

Commit

Permalink
fix: wrong question store logic on slug check
Browse files Browse the repository at this point in the history
  • Loading branch information
benfurber committed Jun 5, 2024
1 parent b7fc472 commit 57902a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/Question/question.store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class QuestionStore extends ModuleStore {
.collection<IQuestion.Item>(COLLECTION_NAME)
.doc(values?._id)

const isTitleAlreadyInUse = await !this.isTitleThatReusesSlug(
const isTitleAlreadyInUse = await this.isTitleThatReusesSlug(
values.title,
values?._id,
)
Expand Down

0 comments on commit 57902a9

Please sign in to comment.