[CORL-450] Embed Code copy (#2411)

* fix: adjusted copy in embed code

* fix: adjusted translation message API

* fix: fixed tests
This commit is contained in:
Wyatt Johnson
2019-07-19 15:55:29 +00:00
committed by GitHub
parent d73bdc7eec
commit 0c97ba0f4a
4 changed files with 44 additions and 10 deletions
@@ -13,5 +13,9 @@ export default function getMessage(
}
return val || got;
}, "");
if (res && Array.isArray(res)) {
return res.join("");
}
return res || defaultTo;
}