diff --git a/src/components/global/Header/Header.tsx b/src/components/global/Header/Header.tsx index 1e2727fd..84d9fb0b 100644 --- a/src/components/global/Header/Header.tsx +++ b/src/components/global/Header/Header.tsx @@ -19,13 +19,7 @@ export default function Header() { useEffect(() => { // remove branding on hosts that are not Deriv const host = window.location.host; - let is_deriv_host = false; - domains.forEach(domain => { - const host_exists = host.indexOf(domain) === 0; - if (host_exists) { - is_deriv_host = host_exists; - } - }); + const is_deriv_host = domains.includes(host); if (!is_deriv_host) { send('TOGGLE_BRANDING_OFF'); diff --git a/src/data-stores/domains.js b/src/data-stores/domains.js index cdc1c02f..a3f3352e 100644 --- a/src/data-stores/domains.js +++ b/src/data-stores/domains.js @@ -4,7 +4,7 @@ export const domains = [ 'api.deriv.be', 'api.deriv.com', 'staging.deriv.be', - 'localhost', + 'localhost:3000', 'deriv-com-git-fork', 'deriv-developers-portal-git-fork', 'staging-api.deriv.com',