Skip to content

Commit

Permalink
server lite undefined guard
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Dec 16, 2023
1 parent b264148 commit 4c28f8d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/serverLite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ const main = async () => {
let slotDiff: number;
if (
!isSpot &&
`${includeVamm}`.toLowerCase() === 'true' &&
`${includeOracle}`.toLowerCase().toLowerCase() === 'true' &&
`${includeVamm}`?.toLowerCase() === 'true' &&
`${includeOracle}`?.toLowerCase().toLowerCase() === 'true' &&
!grouping
) {
let redisL2: string;
Expand All @@ -227,9 +227,9 @@ const main = async () => {
}
} else if (
isSpot &&
`${includeSerum}`.toLowerCase() === 'true' &&
`${includePhoenix}`.toLowerCase() === 'true' &&
`${includeOracle}`.toLowerCase() === 'true' &&
`${includeSerum}`?.toLowerCase() === 'true' &&
`${includePhoenix}`?.toLowerCase() === 'true' &&
`${includeOracle}`?.toLowerCase() === 'true' &&
!grouping
) {
let redisL2: string;
Expand Down Expand Up @@ -336,8 +336,8 @@ const main = async () => {
let l2Formatted: any;
if (
!isSpot &&
normedParam['includeVamm'].toLowerCase() === 'true' &&
normedParam['includeOracle'].toLowerCase() === 'true' &&
normedParam['includeVamm']?.toLowerCase() === 'true' &&
normedParam['includeOracle']?.toLowerCase() === 'true' &&
!normedParam['grouping']
) {
let redisL2: string;
Expand All @@ -364,8 +364,8 @@ const main = async () => {
}
} else if (
isSpot &&
normedParam['includePhoenix'].toLowerCase() === 'true' &&
normedParam['includeSerum'].toLowerCase() === 'true' &&
normedParam['includePhoenix']?.toLowerCase() === 'true' &&
normedParam['includeSerum']?.toLowerCase() === 'true' &&
!normedParam['grouping']
) {
let redisL2: string;
Expand Down

0 comments on commit 4c28f8d

Please sign in to comment.