diff --git a/app/store/mask.ts b/app/store/mask.ts index e13afe665d0..36349284b52 100644 --- a/app/store/mask.ts +++ b/app/store/mask.ts @@ -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();