Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functionality fix #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

shaineoneal
Copy link

Not sure if this was just an issue for me, but I think it was because the notes were set to null and it was looking for a string.

@@ -4,7 +4,11 @@ import renderMarkdown from "../markdownRender";

function DailyItem(props: any) {
var text_html = renderMarkdown(props.daily_text);
var note_html = renderMarkdown(props.daily_notes);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not var note_html = "" instead of deleting this line?

@@ -4,7 +4,11 @@ import renderMarkdown from "../markdownRender";

function DailyItem(props: any) {
var text_html = renderMarkdown(props.daily_text);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add handling of this variable as well, if the props are empty?

@@ -3,7 +3,12 @@ import renderMarkdown from "../markdownRender";

function HabitItem(props: any) {
let habit_text = renderMarkdown(props.habit_text);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add handling of this variable as well, if the props are empty?

@@ -3,7 +3,12 @@ import renderMarkdown from "../markdownRender";

function RewardItem(props: any) {
let reward_text = renderMarkdown(props.reward_text);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add handling of this variable as well, if the props are empty?

@@ -6,7 +6,12 @@ import moment from "moment";
function TodoItem(props: any) {
var dueDate = (props.dueDate==null)?"":("Due Date:"+(moment(props.dueDate).format(props.dueDateFormat)));
var text_html = renderMarkdown(props.todo_text);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add handling of this variable as well, if the props are empty?

@SuperChamp234
Copy link
Owner

Thank you for your contribution @shaineoneal !

I've left some comments, do check them out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants