Unverified Commit 89a5251d authored by michaltarasiuk's avatar michaltarasiuk Committed by GitHub

refactor: unnecessary ternary operator (#63374)

Remove unnecessary ternary operator.
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 866b4181
...@@ -8,8 +8,8 @@ export function Dynamic({ fallback }) { ...@@ -8,8 +8,8 @@ export function Dynamic({ fallback }) {
let signedIn let signedIn
let active let active
if (dynamic) { if (dynamic) {
signedIn = cookies().has('session') ? true : false signedIn = cookies().has('session')
active = cookies().has('delay') ? true : false active = cookies().has('delay')
if (active) { if (active) {
use(new Promise((resolve) => setTimeout(resolve, 1000))) use(new Promise((resolve) => setTimeout(resolve, 1000)))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment