Handvask / handvask

Found template literal expression having a non-string type JS-0378
Anti-pattern
Minor
a year agoa year old
Invalid type in template literal
13    if (token.length === 0) return {};
14    setReady(true);
15    return {
16      Authorization: `Bearer ${token}`,17    };
18  }, [token]) as Record<string, string>;
19