Skip to content

Commit

Permalink
去重后返回现有的面具
Browse files Browse the repository at this point in the history
  • Loading branch information
htmambo committed Jan 25, 2024
1 parent 4cc1309 commit eb6feda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/mask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const useMaskStore = createPersistStore(
if (existingMask.name === mask?.name &&
JSON.stringify(existingMask.context) === JSON.stringify(mask?.context)) {
console.log("A mask with the same name and context already exists.");
return mask;
return existingMask;
}
}
const id = nanoid();
Expand Down

0 comments on commit eb6feda

Please sign in to comment.