The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
This PR fixes a bug where the initial title of a new journal does not populate. This was likely due it not being required and the JOI validation having conflicting rules. JOI validation removes allow and empty rules for empty strings and instead depends on the default value to populate the title if it does happen to be empty. Note that this fallback very likely won't happen now that the default value has been explicitly set.
This PR fixes a bug where the initial title of a new journal does not populate. This was likely due it not being required and the JOI validation having conflicting rules. JOI validation removes
allow
andempty
rules for empty strings and instead depends on the default value to populate the title if it does happen to be empty. Note that this fallback very likely won't happen now that the default value has been explicitly set.