import React from 'react';

export const tidyString = string => (
	<span>{string.split(/\n/).map(s => <p>{s}</p>)}</span>
);

import React from 'react';

export const tidyString = string => (
	string && <span>{string.split(/\n/).map(s => <p>{s}</p>)}</span>
);

Fix issue with undefined strings
Fix issue with undefined strings
