Explicit casting of strings

This commit is contained in:
James Barnsley
2020-08-24 21:12:06 +12:00
parent a2d73c5cb8
commit d3d882d5d9

View File

@ -72,6 +72,10 @@ export function handleException(message, data = {}, description = null, show_not
}
}
// Explicitly convert values to strings
if (message && typeof message !== 'string') message = String(message);
if (description && typeof description !== 'string') description = String(description);
return {
type: 'HANDLE_EXCEPTION',
message,