1nwf / Produx-v2

Use shorthand property syntax for object literals JS-0240
Anti-pattern
Minor
3 occurrences in this check
 34    const [lastId, setLastId] = useState(0)
 35    useEffect(() => {
 36        getPosts({
 37            productId: productId, 38            channel: (channel as string).toLowerCase(),
 39            lastId: lastId,
 40        })
 36        getPosts({
 37            productId: productId,
 38            channel: (channel as string).toLowerCase(),
 39            lastId: lastId, 40        })
 41    }, [lastId])
 42    useEffect(() => {
 47    useEffect(() => {
 48        setPosts([])
 49        getPosts({
 50            productId: productId, 51            channel: (channel as string).toLowerCase(),
 52        })
 53    }, [channel])