fix(shared): fix ternary