diff --git a/frontend/src/models/Limit.model.ts b/frontend/src/models/Limit.model.ts index f5bf7320..ccf5e443 100644 --- a/frontend/src/models/Limit.model.ts +++ b/frontend/src/models/Limit.model.ts @@ -9,7 +9,7 @@ export interface Limit { export type LimitList = Record; export const compareUpdateLimit = (baseL: Limit, newL: Limit): Limit => { - if (baseL == null) { + if (!baseL) { return newL; } else { const price = (baseL.price + newL.price) / 2;