chore: prefix un-consumed router.replace() calls with void

Signed-off-by: Katalina Okano <git@kat.cafe>
This commit is contained in:
41666 2020-12-21 05:10:57 -05:00
parent 779095386d
commit 7f031bb960

View file

@ -11,7 +11,7 @@ const Index = () => {
React.useEffect(() => {
if (user || guilds) {
router.replace('/servers');
void router.replace('/servers');
}
}, [guilds, user]);