in src/components/ErrorDecoder/ErrorDecoder.js [91:106]
function ErrorDecoder(props: {|
errorCodesString: string,
location: {search: string},
|}) {
let code = null;
let msg = '';
const errorCodes = JSON.parse(props.errorCodesString);
const parseResult = parseQueryString(props.location.search || '');
if (parseResult != null) {
code = parseResult.code;
msg = replaceArgs(errorCodes[code], parseResult.args);
}
return <ErrorResult code={code} msg={msg} />;
}